commit c4b93eb7944dd5e97a716c557c9d18c587b8f743
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Sat Jan 12 17:58:57 2019 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Sat Jan 12 17:58:57 2019 +0100
add terminating NULL to M_StringJoin() call
Thanks SiFi270 for reporting this in the Crispy forums.
---
src/doom/d_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index f790d019..49a2c7f5 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1173,7 +1173,7 @@ static void LoadIwadDeh(void)
// Look for chex.deh in the same directory as the IWAD file.
dirname = M_DirName(iwadfile);
- chex_deh = M_StringJoin(dirname, DIR_SEPARATOR_S, "chex.deh");
+ chex_deh = M_StringJoin(dirname, DIR_SEPARATOR_S, "chex.deh", NULL);
free(dirname);
// If the dehacked patch isn't found, try searching the WAD