From 13427d0e167ea630faf8b5967237dcd70ca22f20 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 19 Sep 2008 17:05:44 +0000 Subject: [PATCH] fix MODAPP-145 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9600 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_console.c b/src/switch_console.c index 37d107ff9f..1fdbbecf5c 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -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; }