diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cli_spoolss.c | 12 | ||||
-rw-r--r-- | source3/libsmb/namequery.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source3/libsmb/cli_spoolss.c b/source3/libsmb/cli_spoolss.c index b335127b8be..475ebf66a24 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); diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 01ec5e9b29c..781bca7eff1 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1013,7 +1013,7 @@ NT GETDC call, UNICODE, NT domain SID and uncle tom cobbley and all... bufp += 2; fstrcpy(bufp,srcname); bufp += (strlen(bufp) + 1); - slprintf(bufp, sizeof(fstring), "\\MAILSLOT\\NET\\GETDC%d", dgm_id); + slprintf(bufp, sizeof(fstring)-1, "\\MAILSLOT\\NET\\GETDC%d", dgm_id); mailslot_name = bufp; bufp += (strlen(bufp) + 1); bufp = ALIGN2(bufp, buffer); |