summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-27 05:04:16 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-27 05:04:16 +0000
commit901ffd7ca84a65d26663e64f80d800e6525e0e2f (patch)
tree9031642179c5f632f20fa0f653d277ea6c712191 /source3
parent7488f61d3c7e60cb7607f1b70cacd0635fe95b74 (diff)
downloadsamba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.tar.gz
samba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.tar.bz2
samba-901ffd7ca84a65d26663e64f80d800e6525e0e2f.zip
slprintf() takes a size argument
(This used to be commit 4e142ba3749d2eb45687425ff87c153fb6147056)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
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);
}