svn commit: samba r6261 - in branches/SAMBA_3_0/source: smbd utils

jra at samba.org jra at samba.org
Sat Apr 9 00:50:12 GMT 2005


Author: jra
Date: 2005-04-09 00:50:12 +0000 (Sat, 09 Apr 2005)
New Revision: 6261

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6261

Log:
Tidyup message str printf. Ensure tvs struct is zeroed.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/trans2.c
   branches/SAMBA_3_0/source/utils/smbpasswd.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/trans2.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/trans2.c	2005-04-09 00:49:54 UTC (rev 6260)
+++ branches/SAMBA_3_0/source/smbd/trans2.c	2005-04-09 00:50:12 UTC (rev 6261)
@@ -3581,6 +3581,7 @@
 		return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
 
 	ZERO_STRUCT(sbuf);
+	ZERO_STRUCT(tvs);
 
 	if (tran_call == TRANSACT2_SETFILEINFO) {
 		if (total_params < 4) {

Modified: branches/SAMBA_3_0/source/utils/smbpasswd.c
===================================================================
--- branches/SAMBA_3_0/source/utils/smbpasswd.c	2005-04-09 00:49:54 UTC (rev 6260)
+++ branches/SAMBA_3_0/source/utils/smbpasswd.c	2005-04-09 00:50:12 UTC (rev 6261)
@@ -290,7 +290,7 @@
 				     err_str, sizeof(err_str), msg_str, sizeof(msg_str));
 
 	if(*msg_str)
-		printf(msg_str);
+		printf("%s", msg_str);
 	if(*err_str)
 		fprintf(stderr, "%s", err_str);
 



More information about the samba-cvs mailing list