diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-12-02 00:51:50 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-12-02 00:51:50 +0000 |
commit | 1d63160c751fa968e3a7618d1feb84a9feaa13dc (patch) | |
tree | 7c8d753350959e2321ad8ef1130fc15af0914f60 /source/lib/messages.c | |
parent | 46007a541cd2497c14659a10ba24a6d0a375ac5a (diff) | |
download | samba-1d63160c751fa968e3a7618d1feb84a9feaa13dc.tar.gz samba-1d63160c751fa968e3a7618d1feb84a9feaa13dc.tar.xz samba-1d63160c751fa968e3a7618d1feb84a9feaa13dc.zip |
fixed messaging bug - use strlen() instead of sizeof() in key length
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r-- | source/lib/messages.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c index 7a0343b2498..c30c389d490 100644 --- a/source/lib/messages.c +++ b/source/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; } |