From 92cf946ab5ce63985b8b46872eac3239b7444370 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 Aug 2004 10:46:28 +0000 Subject: r2063: Ensure the first argument to a printf() like function (talloc_init() in this case) is constant. Andrew Bartlett (This used to be commit 806ed15e605a5df1b4c243e21cd595ec2f98e3ee) --- source4/client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/client/client.c') diff --git a/source4/client/client.c b/source4/client/client.c index 0a4f3efab9..ac2e336cfe 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -1648,7 +1648,7 @@ static int cmd_allinfo(const char **cmd_ptr) } 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 @@ static int cmd_acl(const char **cmd_ptr) return -1; } - mem_ctx = talloc_init(fname); + mem_ctx = talloc_init("%s", fname); query.in.fnum = fnum; query.in.secinfo_flags = 0x7; -- cgit