From 367fe84c8f4cf097b9dccfdfdcdbbbb99686b086 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 Aug 2004 10:21:14 +0000 Subject: 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 (This used to be commit 183622c9f4dfe858564bbcb8c1a930d69b37f7fa) --- source4/torture/torture_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/torture_util.c') diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index c39aa0ad5e..99192536f4 100644 --- a/source4/torture/torture_util.c +++ b/source4/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; -- cgit