]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
strncpy -> {strlcpy,memcpy}. Replaced the "forceloop" boolean in "channel_t" by a...
[xonotic/darkplaces.git] / sys_shared.c
index 258e6cf45c1aacffc99ce8f8392318f3e08f5af6..a72125f244940f5046f2111e45624a3d64756c7f 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;