]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Ensure 0-termination for the forked-smbd debug output
authorVolker Lendecke <vl@samba.org>
Thu, 12 Feb 2009 11:11:16 +0000 (12:11 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 5 Apr 2009 11:52:46 +0000 (13:52 +0200)
source3/rpc_client/rpc_transport_smbd.c

index efc57eb2431a825e58d98dfea20560c0eef02ae5..d8ab96f7b2c06f6fe1f2dbc993fb7cf927e398ca 100644 (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,