From 5b33d0e7a6312e9bade72f9bfde5e51a6ec60f5d Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 29 Mar 2020 01:28:29 +0100 Subject: [PATCH] q3map2: pad with zero, not with null pointers, ref #160 see: https://gitlab.com/xonotic/netradiant/-/merge_requests/160#note_287938815 --- tools/quake3/q3map2/bspfile_abstract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index 80b1028b..4b60a9ed 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -344,7 +344,7 @@ void AddLump( FILE *file, bspHeader_t *header, int lumpNum, const void *data, in SafeWrite( file, data, length ); /* write padding zeros */ - char *zeros[3] = { 0, 0, 0 }; + char zeros[3] = { 0, 0, 0 }; SafeWrite( file, zeros, ( ( length + 3 ) & ~3 ) - length ); } -- 2.39.2