mirror of git://git.sysmocom.de/ofono
isimodem: Fix size calculation for address array
This commit is contained in:
parent
5752702cbe
commit
fd69b05542
|
@ -227,7 +227,7 @@ static void isi_call_any_address_sb_proc(struct isi_voicecall *ivc,
|
||||||
|
|
||||||
call->addr_type = type | 0x80;
|
call->addr_type = type | 0x80;
|
||||||
call->presentation = pres;
|
call->presentation = pres;
|
||||||
strncpy(call->address, addr, sizeof(call->address));
|
strncpy(call->address, addr, sizeof(call->address) - 1);
|
||||||
|
|
||||||
g_free(addr);
|
g_free(addr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue