1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

fixed messaging bug - use strlen() instead of sizeof() in key length

This commit is contained in:
Andrew Tridgell
-
parent 46007a541c
commit 1d63160c75

View File

@ -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;
}