aboutsummaryrefslogtreecommitdiff
path: root/src/lutris.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-11-21 12:57:13 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-11-21 12:57:13 +0100
commitb5aaac8349f504f81124e71a4bcf2003cc6d7800 (patch)
tree16d01725cb8c2a54601a4265208909b93346779b /src/lutris.c
parent21d0d63ec3391bb7b01c290bfaed4606fad98e89 (diff)
downloadpolecat-b5aaac8349f504f81124e71a4bcf2003cc6d7800.tar.gz
polecat-b5aaac8349f504f81124e71a4bcf2003cc6d7800.zip
fix wine version being put into the installer name
Diffstat (limited to 'src/lutris.c')
-rw-r--r--src/lutris.c4
1 files 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)
{