diff --git a/source/ui/section/remoteinstall.c b/source/ui/section/remoteinstall.c index be95ff0..596a577 100644 --- a/source/ui/section/remoteinstall.c +++ b/source/ui/section/remoteinstall.c @@ -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); -} \ No newline at end of file +}