diff options
| author | Foxfair Hu <foxfair@FreeBSD.org> | 1999-05-07 13:24:58 +0000 | 
|---|---|---|
| committer | Foxfair Hu <foxfair@FreeBSD.org> | 1999-05-07 13:24:58 +0000 | 
| commit | 85484fbd412d6c8493e20f5b8047e4f054370d1c (patch) | |
| tree | ceec7332d1ccf8002884f033437077735361928d /lib | |
| parent | 8a8beee081887760c252606e4931b3dfe9fb4fc0 (diff) | |
Notes
Diffstat (limited to 'lib')
| -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 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;  }  | 
