commit 7393226342f22c525299cbfcc902c11e2876daa5
Author: Azarien <Azarien@users.noreply.github.com>
AuthorDate: Thu Sep 10 14:47:55 2015 +0200
Commit: Azarien <Azarien@users.noreply.github.com>
CommitDate: Thu Sep 10 15:55:53 2015 +0200
Ensure the buffer is zero-terminated.
---
src/gusconf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gusconf.c b/src/gusconf.c
index f1575c41..5785da6c 100644
--- a/src/gusconf.c
+++ b/src/gusconf.c
@@ -192,6 +192,7 @@ static char *ReadDMXConfig(void)
data = Z_Malloc(len + 1, PU_STATIC, NULL);
W_ReadLump(lumpnum, data);
+ data[len] = '\0';
return data;
}