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:
parent
32626e2b97
commit
841ff0beee
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user