mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
FS-11345: Fixed Werror=stringop-truncation for mod_opus
Fixed Werror=format-truncation on sofia-sip/libsofia-sip-ua/tport Fixed Werror=format-truncation on mod/endpoints/mod_verto Fixed unused-but-set-variable in mod_lua Fixed Werror=format-truncation on libs/sofia-sip/libsofia-sip-ua/tport Fixed Wunused-variable Wmaybe-uninitialized on mod_soundtouch Fixed Wliteral-suffix for libs/unimrcp
This commit is contained in:
@@ -207,19 +207,19 @@ static uint32_t switch_opus_encoder_set_audio_bandwidth(OpusEncoder *encoder_obj
|
||||
static switch_bool_t switch_opus_show_audio_bandwidth(int audiobandwidth,char *audiobandwidth_str)
|
||||
{
|
||||
if (audiobandwidth == OPUS_BANDWIDTH_NARROWBAND) {
|
||||
strncpy(audiobandwidth_str, "NARROWBAND",10);
|
||||
strncpy(audiobandwidth_str, "NARROWBAND",11);
|
||||
return SWITCH_TRUE;
|
||||
} else if (audiobandwidth == OPUS_BANDWIDTH_MEDIUMBAND) {
|
||||
strncpy(audiobandwidth_str, "MEDIUMBAND",10);
|
||||
strncpy(audiobandwidth_str, "MEDIUMBAND",11);
|
||||
return SWITCH_TRUE;
|
||||
} else if (audiobandwidth == OPUS_BANDWIDTH_WIDEBAND) {
|
||||
strncpy(audiobandwidth_str,"WIDEBAND",8);
|
||||
strncpy(audiobandwidth_str,"WIDEBAND",9);
|
||||
return SWITCH_TRUE;
|
||||
} else if (audiobandwidth == OPUS_BANDWIDTH_SUPERWIDEBAND) {
|
||||
strncpy(audiobandwidth_str, "SUPERWIDEBAND",13);
|
||||
strncpy(audiobandwidth_str, "SUPERWIDEBAND",14);
|
||||
return SWITCH_TRUE;
|
||||
} else if (audiobandwidth == OPUS_BANDWIDTH_FULLBAND) {
|
||||
strncpy(audiobandwidth_str, "FULLBAND",8);
|
||||
strncpy(audiobandwidth_str, "FULLBAND",9);
|
||||
return SWITCH_TRUE;
|
||||
}
|
||||
return SWITCH_FALSE;
|
||||
|
||||
Reference in New Issue
Block a user