From b5aaac8349f504f81124e71a4bcf2003cc6d7800 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 21 Nov 2020 12:57:13 +0100 Subject: fix wine version being put into the installer name --- src/lutris.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lutris.c b/src/lutris.c index 18703d6..61a98c7 100644 --- a/src/lutris.c +++ b/src/lutris.c @@ -303,7 +303,7 @@ struct script_t lutris_getInstaller(char* installername) { winestr = json_object_get_string(winever); installer.wine = malloc( strlen(winestr) * sizeof(char) +1 ); - strcpy(installer.name, winestr); + strcpy(installer.wine, winestr); } } @@ -311,7 +311,7 @@ struct script_t lutris_getInstaller(char* installername) if (json_object_object_get_ex(script, "files", &files)) { installer.filecount = json_object_array_length(files); - + installer.files = malloc(installer.filecount * sizeof(void*)); for (int i = 0; i < installer.filecount; ++i) { -- cgit v1.2.3