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 | 0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a (patch) | |
tree | 946831f318555d0ce0f73e6d7ed5619cbb3370a3 | |
parent | 22325f6fdb54962ef65b823459523e6a1936a2a2 (diff) | |
download | samba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.tar.gz samba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.tar.bz2 samba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.zip |
unicode string length is twice longer ;-)
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)
-rw-r--r-- | source3/lib/util_unistr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 1bfcd179f4..b90532d7dc 100644 --- a/source3/lib/util_unistr.c +++ b/source3/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); } |