* console.c, sbar.c: fixed a few format string issues.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@337 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-09-20 08:27:20 +00:00
parent ae617c3a1f
commit 9d07b6cbd6
2 changed files with 8 additions and 8 deletions

View file

@ -682,9 +682,9 @@ void Con_LogCenterPrint (const char *str)
if (con_logcenterprint.value)
{
Con_Printf (Con_Quakebar(40));
Con_Printf ("%s", Con_Quakebar(40));
Con_CenterPrintf (40, "%s\n", str);
Con_Printf (Con_Quakebar(40));
Con_Printf ("%s", Con_Quakebar(40));
Con_ClearNotify ();
}
}
@ -1222,9 +1222,9 @@ void Con_NotifyBox (const char *text)
// during startup for sound / cd warnings
Con_Printf ("\n\n%s", Con_Quakebar(40)); //johnfitz
Con_Printf (text);
Con_Printf ("%s", text);
Con_Printf ("Press a key.\n");
Con_Printf (Con_Quakebar(40)); //johnfitz
Con_Printf ("%s", Con_Quakebar(40)); //johnfitz
key_count = -2; // wait for a key down and up
IN_Deactivate(vid.type == MODE_WINDOWED);

View file

@ -504,9 +504,9 @@ void Sbar_SoloScoreboard (void)
sprintf (str,"skill %i", (int)(skill.value + 0.5));
Sbar_DrawString (160 - strlen(str)*4, 12, str);
sprintf (str,cl.levelname);
strcpy (str,cl.levelname);
strcat (str," (");
strncat (str,cl.mapname,250-strlen(str));
strncat(str,cl.mapname,250-strlen(str));
strcat (str,")");
len = strlen (str);
if (len > 40)