]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/misc.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / contrib / bobtoolz / misc.cpp
index 95274655b9c5b466b67c62f2b090d89f643bb1e2..9e6c2b8b980daecff410d98ffcdc0490360e4496 100644 (file)
@@ -198,9 +198,9 @@ bool Q_Exec(const char *pCmd, bool bCreateConsole)
             // NOTE: we could use that to detect when a step finishes. But then it
             // would not work for remote compiling stuff.
 //      execlp (pCmd, pCmd, NULL);
-            system(pCmd);
+            int ret = system(pCmd);
             printf("system() returned");
-            _exit(0);
+            _exit(ret);
             break;
     }
     return true;