mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
25aa836578
PR: ports/121637 Submitted by: TANAKA Hiroyuki <kattyo@abk.nu> (maintainer)
24 lines
497 B
C
24 lines
497 B
C
--- src/xstring.c.orig 2008-03-27 17:58:25.000000000 +0100
|
|
+++ src/xstring.c 2008-03-27 18:02:39.000000000 +0100
|
|
@@ -351,10 +351,16 @@
|
|
uchar *dstp = dst;
|
|
|
|
while (*src) {
|
|
- if (IsKanjiStr(src))
|
|
- *((ushort*)dstp)++ = *((ushort*)src)++;
|
|
- else
|
|
- *dstp++ = (*func)(*src++);
|
|
+ if (IsKanjiStr(src)) {
|
|
+ *((ushort*)dstp) = *((ushort*)src);
|
|
+ (ushort*)src++;
|
|
+ (ushort*)dstp++;
|
|
+ }
|
|
+ else {
|
|
+ *dstp = (*func)(*src);
|
|
+ src++;
|
|
+ dstp++;
|
|
+ }
|
|
}
|
|
*dstp = 0;
|
|
return dstp - dst;
|