diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-12 12:11:16 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-05 13:52:46 +0200 |
commit | 6d760a4a9fef0ca98cca56cc634712a215ab978a (patch) | |
tree | f6fefeb0121c945ec47a8f5c01dff2f2d4604974 /source3/rpc_client | |
parent | ac4c319ed7559b73ed3232251f9dbc659aa53970 (diff) | |
download | samba-6d760a4a9fef0ca98cca56cc634712a215ab978a.tar.gz samba-6d760a4a9fef0ca98cca56cc634712a215ab978a.tar.bz2 samba-6d760a4a9fef0ca98cca56cc634712a215ab978a.zip |
Ensure 0-termination for the forked-smbd debug output
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/rpc_transport_smbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_client/rpc_transport_smbd.c b/source3/rpc_client/rpc_transport_smbd.c index efc57eb243..d8ab96f7b2 100644 --- a/source3/rpc_client/rpc_transport_smbd.c +++ b/source3/rpc_client/rpc_transport_smbd.c @@ -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, |