summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-12 12:11:16 +0100
committerVolker Lendecke <vl@samba.org>2009-04-05 13:52:46 +0200
commit6d760a4a9fef0ca98cca56cc634712a215ab978a (patch)
treef6fefeb0121c945ec47a8f5c01dff2f2d4604974 /source3/rpc_client
parentac4c319ed7559b73ed3232251f9dbc659aa53970 (diff)
downloadsamba-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.c1
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,