]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
made sensitivity affect cl_prydoncursor
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index c7fe6ac0bc687849201d3dd1f9e567a9784a0f3b..d45fe0edd9bb63860898be780c48b8766501250b 100644 (file)
--- a/host.c
+++ b/host.c
@@ -112,7 +112,7 @@ void Host_Error (const char *error, ...)
        va_list argptr;
 
        va_start (argptr,error);
-       vsprintf (hosterrorstring1,error,argptr);
+       vsnprintf (hosterrorstring1,sizeof(hosterrorstring1),error,argptr);
        va_end (argptr);
 
        Con_Printf("Host_Error: %s\n", hosterrorstring1);
@@ -386,7 +386,7 @@ void Host_ClientCommands(const char *fmt, ...)
        char string[1024];
 
        va_start(argptr,fmt);
-       vsprintf(string, fmt,argptr);
+       vsnprintf(string, sizeof(string), fmt, argptr);
        va_end(argptr);
 
        MSG_WriteByte(&host_client->message, svc_stufftext);