Include space for null terminator in received URL payload.

This commit is contained in:
Steveice10 2017-01-09 16:12:52 -08:00
parent 541786bc86
commit 639675c07e

View File

@ -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);
}
}