From 1351521ed9f6cd4ab9dc410a0d879a3f53b7d498 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Sun, 28 Oct 2001 23:06:54 +0000 Subject: [PATCH] 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 --- cl_parse.c | 2 +- net_dgrm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2