summaryrefslogtreecommitdiffstats
path: root/source/torture/torture_util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-25 10:21:14 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-08-25 10:21:14 +0000
commitd4c9b2a996aa0f3bb40401a86760e80114e18ec6 (patch)
treeb4640c930902c9bc92077ccb0f574598ff6fec8e /source/torture/torture_util.c
parent3e70e3eeac17021abc8ffadb3f1388a2309a85b6 (diff)
downloadsamba-d4c9b2a996aa0f3bb40401a86760e80114e18ec6.tar.gz
samba-d4c9b2a996aa0f3bb40401a86760e80114e18ec6.tar.xz
samba-d4c9b2a996aa0f3bb40401a86760e80114e18ec6.zip
r2062: Fix a couple more of the printf warnings (real bugs).
You should never pass a non-constant string as a format for a printf() function - it could contain printf macros, and these need to be checked. Andrew Bartlett
Diffstat (limited to 'source/torture/torture_util.c')
-rw-r--r--source/torture/torture_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/torture/torture_util.c b/source/torture/torture_util.c
index c39aa0ad5e0..99192536f41 100644
--- a/source/torture/torture_util.c
+++ b/source/torture/torture_util.c
@@ -251,7 +251,7 @@ void dump_all_info(TALLOC_CTX *mem_ctx, union smb_fileinfo *finfo)
*/
void torture_all_info(struct smbcli_tree *tree, const char *fname)
{
- TALLOC_CTX *mem_ctx = talloc_init(fname);
+ TALLOC_CTX *mem_ctx = talloc_init("%s", fname);
union smb_fileinfo finfo;
NTSTATUS status;