summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-25 10:46:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:23 -0500
commit92cf946ab5ce63985b8b46872eac3239b7444370 (patch)
tree76a34758291fb9071231d6309500c9f59b22aaf5
parent367fe84c8f4cf097b9dccfdfdcdbbbb99686b086 (diff)
downloadsamba-92cf946ab5ce63985b8b46872eac3239b7444370.tar.gz
samba-92cf946ab5ce63985b8b46872eac3239b7444370.tar.bz2
samba-92cf946ab5ce63985b8b46872eac3239b7444370.zip
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)
-rw-r--r--source4/client/client.c4
1 files changed, 2 insertions, 2 deletions
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;