]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
q3map2: pad with zero, not with null pointers, ref #160
authorThomas Debesse <dev@illwieckz.net>
Sun, 29 Mar 2020 00:28:29 +0000 (01:28 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 29 Mar 2020 00:28:37 +0000 (01:28 +0100)
see:

https://gitlab.com/xonotic/netradiant/-/merge_requests/160#note_287938815

tools/quake3/q3map2/bspfile_abstract.c

index 80b1028b384257ce684eeaba4d51facffc471b39..4b60a9ed6c270f4df35e2905cf62f17aeec6bbfa 100644 (file)
@@ -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 );
 }