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:
parent
22325f6fdb
commit
0a33bdc7bd
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user