From 3b5666bb00845fd6798d310e00a6d17b128fd565 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 21 Sep 2007 10:46:09 +0000 Subject: 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 used to be commit 841ff0beee7ea44ee92d1f90de3edeb53edcae0a) --- source3/rpcclient/cmd_lsarpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 3f4117ffbe..c405787f1d 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -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)); -- cgit