From: Anthony Minessale Date: Fri, 19 Sep 2008 17:05:44 +0000 (+0000) Subject: fix MODAPP-145 X-Git-Tag: v1.0.2~1177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13427d0e167ea630faf8b5967237dcd70ca22f20;p=thirdparty%2Ffreeswitch.git fix MODAPP-145 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9600 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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; }