summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-01-07 23:21:36 +0000
committerJeremy Allison <jra@samba.org>2004-01-07 23:21:36 +0000
commite82bfa5cf6aa61b3b51db4ff2b683657635038f4 (patch)
treef49f96fb9b1971a20b2fde4c47f07b914a52645c /source3
parent9919ab60eafe149c908a6428aa16c931c223c62a (diff)
downloadsamba-e82bfa5cf6aa61b3b51db4ff2b683657635038f4.tar.gz
samba-e82bfa5cf6aa61b3b51db4ff2b683657635038f4.tar.bz2
samba-e82bfa5cf6aa61b3b51db4ff2b683657635038f4.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 fac9e6d7125fb9edfade3c92a3cd9e1f2c60cefd)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index f9923bd325..d93f39696f 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++;
}