svn commit: samba r2063 - branches/SAMBA_4_0/source/client

abartlet at samba.org abartlet at samba.org
Wed Aug 25 10:46:28 GMT 2004


Author: abartlet
Date: 2004-08-25 10:46:28 +0000 (Wed, 25 Aug 2004)
New Revision: 2063

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2063&nolog=1

Log:
Ensure the first argument to a printf() like function (talloc_init()
in this case) is constant.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/client/client.c


Changeset:
Modified: branches/SAMBA_4_0/source/client/client.c
===================================================================
--- branches/SAMBA_4_0/source/client/client.c	2004-08-25 10:21:14 UTC (rev 2062)
+++ branches/SAMBA_4_0/source/client/client.c	2004-08-25 10:46:28 UTC (rev 2063)
@@ -1648,7 +1648,7 @@
 	}
 	pstrcat(fname,buf);
 
-	mem_ctx = talloc_init(fname);
+	mem_ctx = talloc_init("%s", fname);
 
 	/* first a ALL_INFO QPATHINFO */
 	finfo.generic.level = RAW_FILEINFO_ALL_INFO;
@@ -1763,7 +1763,7 @@
 		return -1;
 	}
 
-	mem_ctx = talloc_init(fname);
+	mem_ctx = talloc_init("%s", fname);
 
 	query.in.fnum = fnum;
 	query.in.secinfo_flags = 0x7;



More information about the samba-cvs mailing list