summaryrefslogtreecommitdiffstats
path: root/source
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
commit4e142ba3749d2eb45687425ff87c153fb6147056 (patch)
tree4701f8b8057c8139abb6358f38ef353b9bbcbf18 /source
parent9e36824d47f7d1aac14bb5aeded8da54962c90a8 (diff)
downloadsamba-4e142ba3749d2eb45687425ff87c153fb6147056.tar.gz
samba-4e142ba3749d2eb45687425ff87c153fb6147056.tar.xz
samba-4e142ba3749d2eb45687425ff87c153fb6147056.zip
slprintf() takes a size argument
Diffstat (limited to 'source')
-rw-r--r--source/rpcclient/cmd_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpcclient/cmd_spoolss.c b/source/rpcclient/cmd_spoolss.c
index 337c176b0a0..2ab90365a71 100644
--- a/source/rpcclient/cmd_spoolss.c
+++ b/source/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);
}