diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-21 18:37:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:58 -0500 |
commit | 3a60a6743262ab2ab221e0fe13ef6b510424ca3f (patch) | |
tree | 7029367395949ad4ce03813c2a7361e934a1cf4d /source3/lib/util_unistr.c | |
parent | c8ef27a3c3db3f04d592652fd6103c5b5cf83d03 (diff) | |
download | samba-3a60a6743262ab2ab221e0fe13ef6b510424ca3f.tar.gz samba-3a60a6743262ab2ab221e0fe13ef6b510424ca3f.tar.bz2 samba-3a60a6743262ab2ab221e0fe13ef6b510424ca3f.zip |
r18793: Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.
(This used to be commit 53e97bf92817b6cfc3f93c999a81ef8ad49a1609)
Diffstat (limited to 'source3/lib/util_unistr.c')
-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 31114feb92..84e4cf3f83 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -171,11 +171,11 @@ static int check_dos_char_slowly(smb_ucs2_t c) smb_ucs2_t c2 = 0; int len1, len2; - len1 = convert_string(CH_UCS2, CH_DOS, &c, 2, buf, sizeof(buf),False); + len1 = convert_string(CH_UTF16LE, CH_DOS, &c, 2, buf, sizeof(buf),False); if (len1 == 0) { return 0; } - len2 = convert_string(CH_DOS, CH_UCS2, buf, len1, &c2, 2,False); + len2 = convert_string(CH_DOS, CH_UTF16LE, buf, len1, &c2, 2,False); if (len2 != 2) { return 0; } |