]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/bspfile_abstract.c
quake3/help: move away from termcap
[xonotic/netradiant.git] / tools / quake3 / q3map2 / bspfile_abstract.c
index 80b1028b384257ce684eeaba4d51facffc471b39..db14ea452230674f9a835ad359e43f505022726d 100644 (file)
@@ -344,8 +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 };
-       SafeWrite( file, zeros, ( ( length + 3 ) & ~3 ) - length );
+       SafeWrite( file, (const byte[3]){ 0, 0, 0 }, ( ( length + 3 ) & ~3 ) - length );
 }
 
 
@@ -605,6 +604,9 @@ void InjectCommandLine( char **argv, int beginArgs, int endArgs ){
 
        for ( i = beginArgs; i < endArgs; ++i )
        {
+               if ( argv[i] == NULL ) {
+                       continue;
+               }
                if ( outpos != sentinel && i != beginArgs ) {
                        *outpos++ = ' ';
                }