summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-10-03 14:55:45 +0000
committerAndrew Tridgell <tridge@samba.org>2001-10-03 14:55:45 +0000
commit211aeffa1a770716f798fd6ba12ab29a95555526 (patch)
tree85fff7d2380fcdee456fee926be19c52c37fd497
parentead3d41f1a8293bcd2062af918b58022f4d9b10e (diff)
downloadsamba-211aeffa1a770716f798fd6ba12ab29a95555526.tar.gz
samba-211aeffa1a770716f798fd6ba12ab29a95555526.tar.xz
samba-211aeffa1a770716f798fd6ba12ab29a95555526.zip
fixed basic ucs2 operation on big endian boxes. Still a bit more to
do, but at least you can connect now.
-rw-r--r--source/lib/util_unistr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c
index a0e1b88eb8f..215a58669d6 100644
--- a/source/lib/util_unistr.c
+++ b/source/lib/util_unistr.c
@@ -181,7 +181,7 @@ uint32 buffer2_to_uint32(BUFFER2 *str)
smb_ucs2_t toupper_w(smb_ucs2_t val)
{
- return upcase_table[val];
+ return upcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -190,7 +190,7 @@ smb_ucs2_t toupper_w(smb_ucs2_t val)
smb_ucs2_t tolower_w( smb_ucs2_t val )
{
- return lowcase_table[val];
+ return lowcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -198,7 +198,7 @@ determine if a character is lowercase
********************************************************************/
BOOL islower_w(smb_ucs2_t c)
{
- return upcase_table[c] != c;
+ return upcase_table[SVAL(&c,0)] != c;
}
/*******************************************************************
@@ -206,7 +206,7 @@ determine if a character is uppercase
********************************************************************/
BOOL isupper_w(smb_ucs2_t c)
{
- return lowcase_table[c] != c;
+ return lowcase_table[SVAL(&c,0)] != c;
}
@@ -215,7 +215,7 @@ determine if a character is valid in a 8.3 name
********************************************************************/
BOOL isvalid83_w(smb_ucs2_t c)
{
- return valid_table[c] != 0;
+ return valid_table[SVAL(&c,0)] != 0;
}
/*******************************************************************