summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-07-04 18:57:16 +0000
committerJean-François Micouleau <jfm@samba.org>2001-07-04 18:57:16 +0000
commit0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a (patch)
tree946831f318555d0ce0f73e6d7ed5619cbb3370a3 /source3/lib/util_unistr.c
parent22325f6fdb54962ef65b823459523e6a1936a2a2 (diff)
downloadsamba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.tar.gz
samba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.tar.bz2
samba-0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a.zip
unicode string length is twice longer ;-)
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c2
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);
}