From 55058b074f9a063d74ce027176451c4021a97c5f Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 21 Mar 2002 14:01:57 +0000 Subject: 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) --- source3/lib/util_unistr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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); } } -- cgit