fix warnings about printf style format strings

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-10-24 11:22:26 +10:30 committed by Kevin Shanahan
parent 899bd1ba83
commit ad6ee08925
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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