1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r25281: Fix a caller of unistr2_to_ascii():

The maxlen parameter should be set to the size of the
destination, not to the size of the soruce.

Michael
This commit is contained in:
Michael Adam 2007-09-21 10:46:09 +00:00 committed by Gerald (Jerry) Carter
parent 32626e2b97
commit 841ff0beee

View File

@ -86,7 +86,7 @@ static void display_query_info_3(DOM_QUERY_3 d)
{
fstring name;
unistr2_to_ascii(name, &d.uni_domain_name, d.uni_dom_max_len);
unistr2_to_ascii(name, &d.uni_domain_name, sizeof(name));
d_printf("Domain Name: %s\n", name);
d_printf("Domain Sid: %s\n", sid_string_static(&d.dom_sid.sid));