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.");
|
||||
|
||||
@ -485,4 +485,4 @@ static void remoteinstall_update(ui_view* view, void* data, linked_list* items,
|
||||
|
||||
void remoteinstall_open() {
|
||||
list_display("Remote Install", "A: Select, B: Return", NULL, remoteinstall_update, NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user