hfpmodem: Make sure to NULL terminate

This commit is contained in:
Denis Kenzior 2017-10-28 15:24:54 -05:00
parent 8986e0dd28
commit 286e1b0952
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}