mirror of git://git.sysmocom.de/ofono
hfpmodem: Make sure to NULL terminate
This commit is contained in:
parent
8986e0dd28
commit
286e1b0952
|
@ -125,6 +125,7 @@ static struct ofono_call *create_call(struct ofono_voicecall *vc, int type,
|
|||
if (clip != 2) {
|
||||
strncpy(call->phone_number.number, num,
|
||||
OFONO_MAX_PHONE_NUMBER_LENGTH);
|
||||
call->phone_number.number[OFONO_MAX_PHONE_NUMBER_LENGTH] = '\0';
|
||||
call->phone_number.type = num_type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue