]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
-Removed Sys_Quit and added Sys_Shutdown which will be called by Host_Shutdown.
[xonotic/darkplaces.git] / sys_shared.c
index 258e6cf45c1aacffc99ce8f8392318f3e08f5af6..dfd9a7a37e72b0bff8dffc79bc5f783638ccbfc8 100644 (file)
@@ -72,7 +72,7 @@ void Sys_Print(const char *msg)
        if (timestamps.integer)
                snprintf(final, sizeof(final), "%s%s", Sys_TimeString(timeformat.string), msg);
        else
-               strncpy(final, msg, sizeof(final));
+               strlcpy (final, msg, sizeof (final));
 
        // LordHavoc: make sure the string is terminated
        final[MAXPRINTMSG-1] = 0;
@@ -93,6 +93,11 @@ void Sys_Printf(const char *fmt, ...)
        Sys_Print(msg);
 }
 
+void Sys_Quit (void)
+{
+       Host_Shutdown();
+       exit(0);
+}
 
 char engineversion[128];