diff options
-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++; } |