printf bogosity fixes from Dabb

This commit is contained in:
Bill Currie 2009-04-10 23:59:48 +00:00 committed by Jeff Teunissen
parent a26cd68ea9
commit 5df7fe5512
3 changed files with 3 additions and 3 deletions

View file

@ -1337,7 +1337,7 @@ _Datagram_Connect (const char *host)
ret = MSG_ReadByte (net_message);
if (ret == CCREP_REJECT) {
reason = MSG_ReadString (net_message);
Sys_Printf (reason);
Sys_Printf ("%s\n", reason);
// strncpy (m_return_reason, reason, 31);
goto ErrorReturn;
}

View file

@ -199,7 +199,7 @@ SV_SendServerinfo (client_t *client)
else
MSG_WriteByte (&client->message, GAME_COOP);
snprintf (message, sizeof (message),
snprintf (message, sizeof (message), "%s",
PR_GetString (&sv_pr_state, SVstring (sv.edicts, message)));
MSG_WriteString (&client->message, message);

View file

@ -1481,7 +1481,7 @@ PF_logfrag (progs_t *pr)
SZ_Print (&svs.log[svs.logsequence & 1], s);
if (sv_fraglogfile) {
Qprintf (sv_fraglogfile, s);
Qprintf (sv_fraglogfile, "%s", s);
Qflush (sv_fraglogfile);
}
}