summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-03-21 14:01:57 +0000
committerHerb Lewis <herb@samba.org>2002-03-21 14:01:57 +0000
commit55058b074f9a063d74ce027176451c4021a97c5f (patch)
treec60d81ad4c0166bad684f31077059fcc1145e8b0 /source3
parent1783dcd2f189d64514733e759bdecc68e86a95ea (diff)
downloadsamba-55058b074f9a063d74ce027176451c4021a97c5f.tar.gz
samba-55058b074f9a063d74ce027176451c4021a97c5f.tar.bz2
samba-55058b074f9a063d74ce027176451c4021a97c5f.zip
must use native endian index when creating default valid.dat table so it
is the same on big and little endian systems. (This used to be commit 6fa09ee88143882abcc51de05002261db767d775)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_unistr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 45e6e6d87e..060460bb2c 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -118,12 +118,12 @@ void init_valid_table(void)
DEBUG(2,("creating default valid table\n"));
valid_table = malloc(0x10000);
- for (i=0;i<128;i++) valid_table[UCS2_CHAR(i)] = isalnum(i) ||
+ for (i=0;i<128;i++) valid_table[i] = isalnum(i) ||
strchr(allowed,i);
for (;i<0x10000;i++) {
smb_ucs2_t c;
SSVAL(&c, 0, i);
- valid_table[c] = check_dos_char(c);
+ valid_table[i] = check_dos_char(c);
}
}