]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix for two Con_Printf calls that are passed a string as the format string
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 Oct 2001 23:06:54 +0000 (23:06 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 Oct 2001 23:06:54 +0000 (23:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@962 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c
net_dgrm.c

index 9f12f9014a99d3d0e07d7c63362369d793892acb..f2c704f2b980c98c1b4a163fd6fadd6445c86ec5 100644 (file)
@@ -992,7 +992,7 @@ void CL_ParseServerMessage (void)
                                        i &= 31;
                                }
                                description[strlen(description)-1] = '\n'; // replace the last space with a newline
-                               Con_Printf(description);
+                               Con_Printf("%s", description);
                                Host_Error ("CL_ParseServerMessage: Illegible server message\n");
                        }
                        break;
index 15ac113fc0be662e22b76b65c4bb875591850d5e..35916fad539b7ccb893060e19e9925999844ad5b 100644 (file)
@@ -1325,7 +1325,7 @@ static qsocket_t *_Datagram_Connect (char *host)
        if (ret == CCREP_REJECT)
        {
                reason = MSG_ReadString();
-               Con_Printf(reason);
+               Con_Printf("%s", reason);
                strncpy(m_return_reason, reason, 31);
                goto ErrorReturn;
        }