1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

unicode string length is twice longer ;-)

(This used to be commit d39d8429d1)
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';
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);
}