summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}