Fixed minor compiler warning
This commit is contained in:
parent
423bc42429
commit
b0b0046ad3
|
@ -270,8 +270,10 @@ void console_msg(osmo_cc_call_t *call, osmo_cc_msg_t *msg)
|
||||||
osmo_cc_free_msg(msg);
|
osmo_cc_free_msg(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (caller_id[0])
|
if (caller_id[0]) {
|
||||||
strncpy(console.station_id, caller_id, sizeof(console.station_id) - 1);
|
strncpy(console.station_id, caller_id, sizeof(console.station_id));
|
||||||
|
console.station_id[sizeof(console.station_id) - 1] = '\0';
|
||||||
|
}
|
||||||
strncpy(console.dialing, number, sizeof(console.dialing) - 1);
|
strncpy(console.dialing, number, sizeof(console.dialing) - 1);
|
||||||
console.dialing[sizeof(console.dialing) - 1] = '\0';
|
console.dialing[sizeof(console.dialing) - 1] = '\0';
|
||||||
console_new_state(CONSOLE_CONNECT);
|
console_new_state(CONSOLE_CONNECT);
|
||||||
|
@ -297,8 +299,10 @@ void console_msg(osmo_cc_call_t *call, osmo_cc_msg_t *msg)
|
||||||
PDEBUG(DCC, DEBUG_INFO, "Call connected to '%s'\n", caller_id);
|
PDEBUG(DCC, DEBUG_INFO, "Call connected to '%s'\n", caller_id);
|
||||||
osmo_cc_helper_audio_negotiate(msg, &console.session, &console.codec);
|
osmo_cc_helper_audio_negotiate(msg, &console.session, &console.codec);
|
||||||
console_new_state(CONSOLE_CONNECT);
|
console_new_state(CONSOLE_CONNECT);
|
||||||
if (caller_id[0])
|
if (caller_id[0]) {
|
||||||
strncpy(console.station_id, caller_id, sizeof(console.station_id) - 1);
|
strncpy(console.station_id, caller_id, sizeof(console.station_id));
|
||||||
|
console.station_id[sizeof(console.station_id) - 1] = '\0';
|
||||||
|
}
|
||||||
request_answer_ack(console.callref);
|
request_answer_ack(console.callref);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue