svn commit: samba r25281 - in branches: SAMBA_3_2/source/rpcclient
SAMBA_3_2_0/source/rpcclient
obnox at samba.org
obnox at samba.org
Fri Sep 21 10:46:11 GMT 2007
Author: obnox
Date: 2007-09-21 10:46:09 +0000 (Fri, 21 Sep 2007)
New Revision: 25281
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25281
Log:
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
Modified:
branches/SAMBA_3_2/source/rpcclient/cmd_lsarpc.c
branches/SAMBA_3_2_0/source/rpcclient/cmd_lsarpc.c
Changeset:
Modified: branches/SAMBA_3_2/source/rpcclient/cmd_lsarpc.c
===================================================================
--- branches/SAMBA_3_2/source/rpcclient/cmd_lsarpc.c 2007-09-21 10:43:21 UTC (rev 25280)
+++ branches/SAMBA_3_2/source/rpcclient/cmd_lsarpc.c 2007-09-21 10:46:09 UTC (rev 25281)
@@ -86,7 +86,7 @@
{
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));
Modified: branches/SAMBA_3_2_0/source/rpcclient/cmd_lsarpc.c
===================================================================
--- branches/SAMBA_3_2_0/source/rpcclient/cmd_lsarpc.c 2007-09-21 10:43:21 UTC (rev 25280)
+++ branches/SAMBA_3_2_0/source/rpcclient/cmd_lsarpc.c 2007-09-21 10:46:09 UTC (rev 25281)
@@ -86,7 +86,7 @@
{
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));
More information about the samba-cvs
mailing list