isimodem: Fix size calculation for address array

This commit is contained in:
Marcel Holtmann 2019-08-12 19:36:42 +02:00
parent 5752702cbe
commit fd69b05542
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ static void isi_call_any_address_sb_proc(struct isi_voicecall *ivc,
call->addr_type = type | 0x80;
call->presentation = pres;
strncpy(call->address, addr, sizeof(call->address));
strncpy(call->address, addr, sizeof(call->address) - 1);
g_free(addr);
}