diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-11-21 12:57:13 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-11-21 12:57:13 +0100 |
commit | b5aaac8349f504f81124e71a4bcf2003cc6d7800 (patch) | |
tree | 16d01725cb8c2a54601a4265208909b93346779b | |
parent | 21d0d63ec3391bb7b01c290bfaed4606fad98e89 (diff) | |
download | polecat-b5aaac8349f504f81124e71a4bcf2003cc6d7800.tar.gz polecat-b5aaac8349f504f81124e71a4bcf2003cc6d7800.zip |
fix wine version being put into the installer name
-rw-r--r-- | src/lutris.c | 4 |
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) { |