diff options
Diffstat (limited to 'src/gameinfo.c')
-rw-r--r-- | src/gameinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gameinfo.c b/src/gameinfo.c index de5fafc..a5f1a42 100644 --- a/src/gameinfo.c +++ b/src/gameinfo.c @@ -54,7 +54,7 @@ static int storeargs(int argc, char *argv[]) { return 0; } __attribute__((used, section(".init_array"))) -static void *pstoreargs = &storeargs; +static void *pstoreargs = (void *)&storeargs; #endif // case insensitive substring match, expects s2 to be lowercase already! @@ -333,8 +333,8 @@ bool gameinfo_init(void) { } os_char gameinfopath[PATH_MAX]; if (os_snprintf(gameinfopath, PATH_MAX, OS_LIT("%s/gameinfo.txt"), - gamedir, modname) >= PATH_MAX) { - con_warn("gameinfo: gameinfo.text path is too long!\n"); + gamedir) >= PATH_MAX) { + con_warn("gameinfo: gameinfo.txt path is too long!\n"); return false; } |