summaryrefslogtreecommitdiffstats
path: root/source/passdb/passdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-27 20:52:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:58 -0500
commitc2752347eb2deeb2798c580ec7fc751a847717e9 (patch)
treef0f957d3aca809dfdb85e5c999c39384c5a57f84 /source/passdb/passdb.c
parentc007f20c955f224c6a8deeb0b1f82e8432f1b9ab (diff)
downloadsamba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.gz
samba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.xz
samba-c2752347eb2deeb2798c580ec7fc751a847717e9.zip
r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy.
Diffstat (limited to 'source/passdb/passdb.c')
-rw-r--r--source/passdb/passdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index 006161b6639..ac4d2555978 100644
--- a/source/passdb/passdb.c
+++ b/source/passdb/passdb.c
@@ -566,8 +566,8 @@ BOOL pdb_gethexpwd(const char *p, unsigned char *pwd)
return (False);
for (i = 0; i < 32; i += 2) {
- hinybble = toupper(p[i]);
- lonybble = toupper(p[i + 1]);
+ hinybble = toupper_ascii(p[i]);
+ lonybble = toupper_ascii(p[i + 1]);
p1 = strchr(hexchars, hinybble);
p2 = strchr(hexchars, lonybble);
@@ -616,8 +616,8 @@ BOOL pdb_gethexhours(const char *p, unsigned char *hours)
}
for (i = 0; i < 42; i += 2) {
- hinybble = toupper(p[i]);
- lonybble = toupper(p[i + 1]);
+ hinybble = toupper_ascii(p[i]);
+ lonybble = toupper_ascii(p[i + 1]);
p1 = strchr(hexchars, hinybble);
p2 = strchr(hexchars, lonybble);