diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-07-04 18:57:16 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-07-04 18:57:16 +0000 |
commit | d39d8429d1cb8a976022ae92a1ce551f7d876aff (patch) | |
tree | f6d2f412a415c62fb63ab05ac77c71f489dfc95e | |
parent | 76d83e7f704cf016308dccaad9bc42d57db97686 (diff) | |
download | samba-d39d8429d1cb8a976022ae92a1ce551f7d876aff.tar.gz samba-d39d8429d1cb8a976022ae92a1ce551f7d876aff.tar.xz samba-d39d8429d1cb8a976022ae92a1ce551f7d876aff.zip |
unicode string length is twice longer ;-)
-rw-r--r-- | source/lib/util_unistr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c index 1bfcd179f4f..b90532d7dc5 100644 --- a/source/lib/util_unistr.c +++ b/source/lib/util_unistr.c @@ -114,7 +114,7 @@ void unistr2_to_ascii(char *dest, const UNISTR2 *str, size_t maxlen) *dest='\0'; return; } - pull_ucs2(NULL, dest, str->buffer, maxlen, str->uni_str_len, STR_NOALIGN); + pull_ucs2(NULL, dest, str->buffer, maxlen, str->uni_str_len*2, STR_NOALIGN); } |