summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-21 10:46:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:57 -0500
commit3b5666bb00845fd6798d310e00a6d17b128fd565 (patch)
treeb7c4a385dfe0e9204911be03a2c524dccbb4a847 /source3
parent3f2939cc167cca2e7f5758f231b470507c600360 (diff)
downloadsamba-3b5666bb00845fd6798d310e00a6d17b128fd565.tar.gz
samba-3b5666bb00845fd6798d310e00a6d17b128fd565.tar.bz2
samba-3b5666bb00845fd6798d310e00a6d17b128fd565.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c2
1 files changed, 1 insertions, 1 deletions
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));