1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Ensure 0-termination for the forked-smbd debug output

This commit is contained in:
Volker Lendecke 2009-02-12 12:11:16 +01:00
parent ac4c319ed7
commit 6d760a4a9f

View File

@ -88,6 +88,7 @@ static void rpc_cli_smbd_stdout_reader(struct event_context *ev,
TALLOC_FREE(fde);
return;
}
buf[nread] = '\0';
if (conn->stdout_callback.fn != NULL) {
conn->stdout_callback.fn(buf, nread,