]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODAPP-145
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 19 Sep 2008 17:05:44 +0000 (17:05 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 19 Sep 2008 17:05:44 +0000 (17:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9600 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_console.c

index 37d107ff9f933d4fbe30e56204d34f55718b8bb1..1fdbbecf5cb655316aa86d981b6803f3b0899ccd 100644 (file)
@@ -104,7 +104,7 @@ SWITCH_DECLARE_NONSTD(switch_status_t) switch_console_stream_raw_write(switch_st
        memcpy((uint8_t *) (handle->data) + handle->data_len, data, datalen);
        handle->data_len += datalen;
        handle->end = (uint8_t *) (handle->data) + handle->data_len;
-       handle->end = NULL;
+       *(uint8_t *)handle->end = '\0';
 
        return SWITCH_STATUS_SUCCESS;
 }