summaryrefslogtreecommitdiff
path: root/source3/libsmb/cli_spoolss.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-08 20:22:39 +0000
committerJeremy Allison <jra@samba.org>2001-04-08 20:22:39 +0000
commitf9a15ce1a69f905e94db7650f0a4805720cd9c88 (patch)
treeee37b735477fe7eaea7cb16a30d126971aae8d5b /source3/libsmb/cli_spoolss.c
parent607d5d508d091d6c9b9cd6549b2a89f7359d780c (diff)
downloadsamba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.tar.gz
samba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.tar.bz2
samba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.zip
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
Diffstat (limited to 'source3/libsmb/cli_spoolss.c')
-rw-r--r--source3/libsmb/cli_spoolss.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/cli_spoolss.c b/source3/libsmb/cli_spoolss.c
index b335127b8b..475ebf66a2 100644
--- a/source3/libsmb/cli_spoolss.c
+++ b/source3/libsmb/cli_spoolss.c
@@ -474,7 +474,7 @@ uint32 cli_spoolss_enum_ports(struct cli_state *cli, uint32 level,
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- slprintf (server, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (server);
do {
@@ -701,7 +701,7 @@ uint32 cli_spoolss_enumprinterdrivers (
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- slprintf (server, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (server);
do
@@ -781,7 +781,7 @@ uint32 cli_spoolss_getprinterdriverdir (
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- slprintf (server, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (server);
do
@@ -848,7 +848,7 @@ uint32 cli_spoolss_addprinterdriver (
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- slprintf (server, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (server);
/* Initialise input parameters */
@@ -899,9 +899,9 @@ uint32 cli_spoolss_addprinterex (
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- slprintf (client, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (client, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (client);
- slprintf (server, sizeof(fstring), "\\\\%s", cli->desthost);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
strupper (server);
fstrcpy (user, cli->user_name);