summaryrefslogtreecommitdiff
path: root/source3/lib/messages.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/lib/messages.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/lib/messages.c')
-rw-r--r--source3/lib/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index ab02d1253b..5591f141cc 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -115,7 +115,7 @@ static TDB_DATA message_key_pid(pid_t pid)
static char key[20];
TDB_DATA kbuf;
- slprintf(key, sizeof(key), "PID/%d", (int)pid);
+ slprintf(key, sizeof(key)-1, "PID/%d", (int)pid);
kbuf.dptr = (char *)key;
kbuf.dsize = strlen(key)+1;