mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
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)
This commit is contained in:
parent
1795dfd454
commit
367fe84c8f
@ -201,6 +201,9 @@ if test x"$with_ads_support" != x"no"; then
|
||||
ac_save_CPPFLAGS=$CPPFLAGS
|
||||
ac_save_LDFLAGS=$LDFLAGS
|
||||
|
||||
#MIT needs this, to let us see 'internal' parts of the headers we use
|
||||
KRB5_CFLAGS="${KRB5_CFLAGS} -DKRB5_PRIVATE -DKRB5_DEPRECATED"
|
||||
|
||||
CFLAGS="$CFLAGS $KRB5_CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $KRB5_CPPFLAGS"
|
||||
LDFLAGS="$LDFLAGS $KRB5_LDFLAGS"
|
||||
|
@ -1913,7 +1913,7 @@ static int run_test(void)
|
||||
current_op.opnum = op;
|
||||
current_op.name = gen_ops[which_op].name;
|
||||
current_op.status = NT_STATUS_OK;
|
||||
current_op.mem_ctx = talloc_init(current_op.name);
|
||||
current_op.mem_ctx = talloc_init("%s", current_op.name);
|
||||
|
||||
ret = gen_ops[which_op].handler(instance);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user