From: lordhavoc Date: Sun, 28 Oct 2001 23:06:54 +0000 (+0000) Subject: fix for two Con_Printf calls that are passed a string as the format string X-Git-Tag: RELEASE_0_2_0_RC1~770 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1351521ed9f6cd4ab9dc410a0d879a3f53b7d498;p=xonotic%2Fdarkplaces.git fix for two Con_Printf calls that are passed a string as the format string git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@962 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 9f12f901..f2c704f2 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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; diff --git a/net_dgrm.c b/net_dgrm.c index 15ac113f..35916fad 100644 --- a/net_dgrm.c +++ b/net_dgrm.c @@ -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; }