]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/vis.c
q3map2: do not leak user temporary paths
[xonotic/netradiant.git] / tools / quake3 / q3map2 / vis.c
index ef05a3dcbea499414c2eebeb50fa4fa13f23eb3f..588765ee99e4e15b9d55b68f6c2fb63266dfd65d 100644 (file)
@@ -1155,7 +1155,9 @@ int VisMain( int argc, char **argv ){
                else if ( !strcmp( argv[ i ], "-prtfile" ) )
                {
                        strcpy( portalFilePath, argv[i + 1] );
+                       argv[ i ] = NULL;
                        i++;
+                       argv[ i ] = NULL;
                        Sys_Printf( "Use %s as portal file\n", portalFilePath );
                }