From 0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Wed, 4 Jul 2001 18:57:16 +0000 Subject: unicode string length is twice longer ;-) (This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff) --- source3/lib/util_unistr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/util_unistr.c') 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); } -- cgit