1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

unicode string length is twice longer ;-)

(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)
This commit is contained in:
Jean-François Micouleau 2001-07-04 18:57:16 +00:00
parent 22325f6fdb
commit 0a33bdc7bd

View File

@ -114,7 +114,7 @@ void unistr2_to_ascii(char *dest, const UNISTR2 *str, size_t maxlen)
*dest='\0'; *dest='\0';
return; 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);
} }