mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Include space for null terminator in received URL payload.
This commit is contained in:
parent
541786bc86
commit
639675c07e
@ -157,7 +157,7 @@ static void remoteinstall_network_update(ui_view* view, void* data, float* progr
|
||||
return;
|
||||
}
|
||||
|
||||
char* urls = (char*) calloc(size, sizeof(char));
|
||||
char* urls = (char*) calloc(size + 1, sizeof(char));
|
||||
if(urls == NULL) {
|
||||
error_display(NULL, NULL, "Failed to allocate URL buffer.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user