diff options
author | Michael Adam <obnox@samba.org> | 2007-09-21 11:53:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:57 -0500 |
commit | 91b276e4eafd337c7a4a097be85ef6b333936f98 (patch) | |
tree | 967d2b55fd3d9a8178610cce10a31214aaeab2d5 | |
parent | 3b5666bb00845fd6798d310e00a6d17b128fd565 (diff) | |
download | samba-91b276e4eafd337c7a4a097be85ef6b333936f98.tar.gz samba-91b276e4eafd337c7a4a097be85ef6b333936f98.tar.bz2 samba-91b276e4eafd337c7a4a097be85ef6b333936f98.zip |
r25285: Fix some more callers of unistr2_to_ascii to use the size of
destination instead of source as maxlen.
Michael
(This used to be commit 76cb05deec153c1e0003776339da912a0f3d73a9)
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index c405787f1d..31a8e2bdfd 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -96,7 +96,7 @@ static void display_query_info_5(DOM_QUERY_5 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)); @@ -118,9 +118,9 @@ static void display_query_info_12(DOM_QUERY_12 d) { fstring dom_name, dns_dom_name, forest_name; - unistr2_to_ascii(dom_name, &d.uni_nb_dom_name, d.hdr_nb_dom_name.uni_max_len); - unistr2_to_ascii(dns_dom_name, &d.uni_dns_dom_name, d.hdr_dns_dom_name.uni_max_len); - unistr2_to_ascii(forest_name, &d.uni_forest_name, d.hdr_forest_name.uni_max_len); + unistr2_to_ascii(dom_name, &d.uni_nb_dom_name, sizeof(dom_name)); + unistr2_to_ascii(dns_dom_name, &d.uni_dns_dom_name, sizeof(dns_dom_name)); + unistr2_to_ascii(forest_name, &d.uni_forest_name, sizeof(forest_name)); d_printf("Domain NetBios Name: %s\n", dom_name); d_printf("Domain DNS Name: %s\n", dns_dom_name); |