ref: c6f5de37e055b38b9e6b9fe20ff66347d87b13f8
parent: e6250d6a64c037e3f6073cc105f3b5cd9a0d645a
parent: 7393226342f22c525299cbfcc902c11e2876daa5
author: Simon Howard <fraggle+github@gmail.com>
date: Thu Sep 10 06:52:15 EDT 2015
Merge pull request #610 from Azarien/upstream_patch gusconf: Ensure the read buffer is zero-terminated.
--- a/src/gusconf.c
+++ b/src/gusconf.c
@@ -192,6 +192,7 @@
data = Z_Malloc(len + 1, PU_STATIC, NULL);
W_ReadLump(lumpnum, data);
+ data[len] = '\0';
return data;
}