summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-12-02 00:51:50 +0000
committerAndrew Tridgell <tridge@samba.org>2000-12-02 00:51:50 +0000
commitd546f555a22e1c4aaa29851ab7a226137fce3508 (patch)
tree9aea42336a7624d5643202398670a0e18663e7a9 /source3
parent38a585c99d6373e846de19fdd75b4df259806fc7 (diff)
downloadsamba-d546f555a22e1c4aaa29851ab7a226137fce3508.tar.gz
samba-d546f555a22e1c4aaa29851ab7a226137fce3508.tar.bz2
samba-d546f555a22e1c4aaa29851ab7a226137fce3508.zip
fixed messaging bug - use strlen() instead of sizeof() in key length
(This used to be commit 1d63160c751fa968e3a7618d1feb84a9feaa13dc)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 7a0343b249..c30c389d49 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -120,9 +120,9 @@ static TDB_DATA message_key_pid(pid_t pid)
TDB_DATA kbuf;
slprintf(key, sizeof(key), "PID/%d", (int)pid);
-
+
kbuf.dptr = (char *)key;
- kbuf.dsize = sizeof(key);
+ kbuf.dsize = strlen(key)+1;
return kbuf;
}