summaryrefslogtreecommitdiff
path: root/source3/rpc_server
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/rpc_server
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/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 32ec81b07a..0654f24493 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -1171,7 +1171,7 @@ BOOL api_rpcTNP(pipes_struct *p, char *rpc_name,
/* interpret the command */
DEBUG(4,("api_rpcTNP: %s op 0x%x - ", rpc_name, p->hdr_req.opnum));
- slprintf(name, sizeof(name), "in_%s", rpc_name);
+ slprintf(name, sizeof(name)-1, "in_%s", rpc_name);
prs_dump(name, p->hdr_req.opnum, &p->in_data.data);
for (fn_num = 0; api_rpc_cmds[fn_num].name; fn_num++) {
@@ -1201,7 +1201,7 @@ BOOL api_rpcTNP(pipes_struct *p, char *rpc_name,
return False;
}
- slprintf(name, sizeof(name), "out_%s", rpc_name);
+ slprintf(name, sizeof(name)-1, "out_%s", rpc_name);
offset2 = prs_offset(&p->out_data.rdata);
prs_set_offset(&p->out_data.rdata, offset1);
prs_dump(name, p->hdr_req.opnum, &p->out_data.rdata);