shithub: choc

Download patch

ref: c4b93eb7944dd5e97a716c557c9d18c587b8f743
parent: af804990166f96c87bbd9fb317251f5fe79de56b
author: Fabian Greffrath <fabian@greffrath.com>
date: Sat Jan 12 12:58:57 EST 2019

add terminating NULL to M_StringJoin() call

Thanks SiFi270 for reporting this in the Crispy forums.

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1173,7 +1173,7 @@
 
         // 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