summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>1999-05-07 13:24:58 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>1999-05-07 13:24:58 +0000
commit85484fbd412d6c8493e20f5b8047e4f054370d1c (patch)
treeceec7332d1ccf8002884f033437077735361928d /lib
parent8a8beee081887760c252606e4931b3dfe9fb4fc0 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/big5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/big5.c b/lib/libc/locale/big5.c
index 213ef509232d..9294f0c0c2c6 100644
--- a/lib/libc/locale/big5.c
+++ b/lib/libc/locale/big5.c
@@ -82,10 +82,10 @@ _BIG5_sgetrune(string, n, result)
*result = string;
return (_INVALID_RUNE);
}
- while (len-- >= 0)
+ while (--len >= 0)
rune = (rune << 8) | ((u_int)(*string++) & 0xff);
if (result)
- *result = string + len;
+ *result = string;
return rune;
}