diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/big5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/big5.c b/lib/libc/locale/big5.c index 213ef50..9294f0c 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; } |