git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1783dcd
)
must use native endian index when creating default valid.dat table so it
author
Herb Lewis
<herb@samba.org>
Thu, 21 Mar 2002 14:01:57 +0000
(14:01 +0000)
committer
Herb Lewis
<herb@samba.org>
Thu, 21 Mar 2002 14:01:57 +0000
(14:01 +0000)
is the same on big and little endian systems.
(This used to be commit
6fa09ee88143882abcc51de05002261db767d775
)
source3/lib/util_unistr.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_unistr.c
b/source3/lib/util_unistr.c
index 45e6e6d87e6818670f188cd2bd287feab9065f39..060460bb2ca59a4df808c8705a791a393acc53b9 100644
(file)
--- 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);
}
}