From: Michael Jerris Date: Thu, 15 May 2014 14:26:29 +0000 (+0000) Subject: CID:1214141 Buffer not null terminated X-Git-Tag: v1.4.4~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d58fde63fc31f61acb1671cd46ebd6df243794;p=thirdparty%2Ffreeswitch.git CID:1214141 Buffer not null terminated --- diff --git a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c index 7e70b65877..b0c4d98150 100644 --- a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c +++ b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c @@ -1863,7 +1863,7 @@ static apt_bool_t speech_on_channel_add(mrcp_application_t *application, mrcp_se } if (descriptor->name.length) { - strncpy(codec_name, descriptor->name.buf, sizeof(codec_name)); + strncpy(codec_name, descriptor->name.buf, sizeof(codec_name) - 1 ); } switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) %s channel is ready, codec = %s, sample rate = %d\n", schannel->name, speech_channel_type_to_string(schannel->type), codec_name, schannel->rate);