modem: modem_cellular: CID 338140
incorrect size passed to strncpy Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
This commit is contained in:
parent
adcdf64a0f
commit
ae951f5f02
|
@ -325,7 +325,7 @@ static void modem_cellular_chat_on_cgmi(struct modem_chat *chat, char **argv, ui
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(data->manufacturer, argv[1], sizeof(data->manufacturer));
|
strncpy(data->manufacturer, argv[1], sizeof(data->manufacturer) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void modem_cellular_chat_on_cgmr(struct modem_chat *chat, char **argv, uint16_t argc,
|
static void modem_cellular_chat_on_cgmr(struct modem_chat *chat, char **argv, uint16_t argc,
|
||||||
|
|
Loading…
Reference in a new issue