diff options
author | Jeremy Allison <jra@samba.org> | 2004-01-07 23:21:25 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-01-07 23:21:25 +0000 |
commit | be7b27b78f7f2ea6e2b6251e33f09bd44f23b78f (patch) | |
tree | a25332303824686380a5962f5c054cc321e296dc /source3/lib/util_str.c | |
parent | f71a02865bfd14f9d0d25912859d5f657027f8f4 (diff) | |
download | samba-be7b27b78f7f2ea6e2b6251e33f09bd44f23b78f.tar.gz samba-be7b27b78f7f2ea6e2b6251e33f09bd44f23b78f.tar.bz2 samba-be7b27b78f7f2ea6e2b6251e33f09bd44f23b78f.zip |
Fix for bug #922. Fast path not called for strlower_m() and strupper_m().
From ab@samba.org (Alexander Bokovoy).
Jeremy.
(This used to be commit 88c51454327533f8bc06ce1cd479370aabefdf81)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index fd339370b3..f552b38e67 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1298,7 +1298,7 @@ void strlower_m(char *s) supported multi-byte character sets are ascii-compatible (ie. they match for the first 128 chars) */ - while (*s && !(((unsigned char)s[0]) & 0x7F)) { + while (*s && !(((unsigned char)s[0]) & 0x80)) { *s = tolower((unsigned char)*s); s++; } @@ -1322,7 +1322,7 @@ void strupper_m(char *s) supported multi-byte character sets are ascii-compatible (ie. they match for the first 128 chars) */ - while (*s && !(((unsigned char)s[0]) & 0x7F)) { + while (*s && !(((unsigned char)s[0]) & 0x80)) { *s = toupper((unsigned char)*s); s++; } |