diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-08-27 05:04:16 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-08-27 05:04:16 +0000 |
commit | 901ffd7ca84a65d26663e64f80d800e6525e0e2f (patch) | |
tree | 9031642179c5f632f20fa0f653d277ea6c712191 | |
parent | 7488f61d3c7e60cb7607f1b70cacd0635fe95b74 (diff) | |
download | samba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.tar.gz samba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.tar.bz2 samba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.zip |
slprintf() takes a size argument
(This used to be commit 4e142ba3749d2eb45687425ff87c153fb6147056)
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 337c176b0a..2ab90365a7 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -327,7 +327,7 @@ static NTSTATUS cmd_spoolss_enum_printers(struct cli_state *cli, if (argc == 3) fstrcpy(name, argv[2]); else { - slprintf(name, "\\\\%s", cli->desthost); + slprintf(name, sizeof(name)-1, "\\\\%s", cli->desthost); strupper(name); } |