]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/cmdlib/cmdlib.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / libs / cmdlib / cmdlib.cpp
index 9bfd24364dc4bff37e09a5354b10f3070cf7d364..075ff2c7d45c0a6c80021ad8c1a889afe0aa0a69 100644 (file)
@@ -76,11 +76,11 @@ bool Q_Exec( const char *cmd, char *cmdline, const char *, bool, bool waitfor ){
                printf( "Running system...\n" );
                printf( "Command: %s\n", pCmd );
 #endif
-               system( pCmd );
+               int ret = system( pCmd );
 #if GDEF_DEBUG
                printf( "system() returned\n" );
 #endif
-               _exit( 0 );
+               _exit( ret );
                break;
        }
        return true;