diff --git a/NQ/net_dgrm.c b/NQ/net_dgrm.c index 0db2522..13fbbbb 100644 --- a/NQ/net_dgrm.c +++ b/NQ/net_dgrm.c @@ -1321,7 +1321,7 @@ _Datagram_Connect(char *host, net_landriver_t *driver) ret = MSG_ReadByte(); if (ret == CCREP_REJECT) { reason = MSG_ReadString(); - Con_Printf(reason); + Con_Printf("%s\n", reason); strncpy(m_return_reason, reason, 31); m_return_reason[31] = 0; goto ErrorReturn; diff --git a/NQ/sv_main.c b/NQ/sv_main.c index b573036..a3f4310 100644 --- a/NQ/sv_main.c +++ b/NQ/sv_main.c @@ -321,7 +321,7 @@ SV_SendServerinfo(client_t *client) else MSG_WriteByte(&client->message, GAME_COOP); - sprintf(message, PR_GetString(sv.edicts->v.message)); + sprintf(message, "%s", PR_GetString(sv.edicts->v.message)); MSG_WriteString(&client->message, message); diff --git a/QW/server/pr_cmds.c b/QW/server/pr_cmds.c index bbcfd8c..1043081 100644 --- a/QW/server/pr_cmds.c +++ b/QW/server/pr_cmds.c @@ -1565,7 +1565,7 @@ PF_logfrag(void) SZ_Print(&svs.log[svs.logsequence & 1], s); if (sv_fraglogfile) { - fprintf(sv_fraglogfile, s); + fprintf(sv_fraglogfile, "%s", s); fflush(sv_fraglogfile); } } diff --git a/common/console.c b/common/console.c index c3b1a45..4803686 100644 --- a/common/console.c +++ b/common/console.c @@ -625,7 +625,7 @@ Con_NotifyBox(char *text) Con_Printf ("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n"); - Con_Printf(text); + Con_Printf("%s", text); Con_Printf("Press a key.\n"); Con_Printf