mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-20 16:03:40 +00:00
fix warnings about printf style format strings
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
899bd1ba83
commit
ad6ee08925
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user