summaryrefslogtreecommitdiffhomepage
path: root/src/gameinfo.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:57:01 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:57:01 +0000
commit149d03af77dfc12b5b977c30d9a2de7afe26385e (patch)
treeedb68dfd7225bd3c8c8c7194e1f94525de3b271b /src/gameinfo.c
parent4ed68f73dae9e7621d7d7512b5feb686e9440bb2 (diff)
Fix a couple of other latent woopsies
The format string one is cool because it implies the Windows code was also always wrong but the Windows headers aren't annotated for Clang so I guess that means it doesn't warn. At least for the nonstandard Windows wide character versions of things. Cool!
Diffstat (limited to 'src/gameinfo.c')
-rw-r--r--src/gameinfo.c6
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;
}