summaryrefslogtreecommitdiff
path: root/lib/util/util_str_common.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-07-19 13:19:29 -0700
committerJeremy Allison <jra@samba.org>2011-07-19 13:19:29 -0700
commitee34c25c8a989b5a7c0ad59d71bb39f8efff045c (patch)
tree25d8f09ed1c36ad18c8c54d596efeeb6c1aa66b2 /lib/util/util_str_common.c
parent2052c2d6fa830b94a6b6cf8dd48b56f62de4e5ac (diff)
downloadsamba-ee34c25c8a989b5a7c0ad59d71bb39f8efff045c.tar.gz
samba-ee34c25c8a989b5a7c0ad59d71bb39f8efff045c.tar.bz2
samba-ee34c25c8a989b5a7c0ad59d71bb39f8efff045c.zip
First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems
Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
Diffstat (limited to 'lib/util/util_str_common.c')
-rw-r--r--lib/util/util_str_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_str_common.c b/lib/util/util_str_common.c
index fe78d65020..20682f9935 100644
--- a/lib/util/util_str_common.c
+++ b/lib/util/util_str_common.c
@@ -43,7 +43,7 @@ _PUBLIC_ int strwicmp(const char *psz1, const char *psz2)
psz1++;
while (isspace((int)*psz2))
psz2++;
- if (toupper_ascii((unsigned char)*psz1) != toupper_ascii((unsigned char)*psz2)
+ if (toupper_m((unsigned char)*psz1) != toupper_m((unsigned char)*psz2)
|| *psz1 == '\0'
|| *psz2 == '\0')
break;