diff options
-rw-r--r-- | source3/lib/util_unistr.c | 4 |
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); } } |