From: Volker Lendecke Date: Thu, 12 Feb 2009 11:11:16 +0000 (+0100) Subject: Ensure 0-termination for the forked-smbd debug output X-Git-Tag: tdb-1.1.5~1031^2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d760a4a9fef0ca98cca56cc634712a215ab978a;p=thirdparty%2Fsamba.git Ensure 0-termination for the forked-smbd debug output --- diff --git a/source3/rpc_client/rpc_transport_smbd.c b/source3/rpc_client/rpc_transport_smbd.c index efc57eb2431..d8ab96f7b2c 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,