Fix some format string warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3349 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
if (errBuffer[0] != '\0')
|
if (errBuffer[0] != '\0')
|
||||||
{ // Have some saved error to log
|
{ // Have some saved error to log
|
||||||
log_add (log_Error, errBuffer);
|
log_add (log_Error, "%s", errBuffer);
|
||||||
errBuffer[0] = '\0';
|
errBuffer[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1041,7 +1041,7 @@ ChangeGameSelection:
|
|||||||
|
|
||||||
t.baseline.x = r.corner.x + 3;
|
t.baseline.x = r.corner.x + 3;
|
||||||
if (((SUMMARY_DESC *)pMS->Extra)[NewState - SHIFT + i].year_index == 0)
|
if (((SUMMARY_DESC *)pMS->Extra)[NewState - SHIFT + i].year_index == 0)
|
||||||
sprintf (buf, GAME_STRING (SAVEGAME_STRING_BASE + 3)); // "Empty Slot"
|
sprintf (buf, "%s", GAME_STRING (SAVEGAME_STRING_BASE + 3)); // "Empty Slot"
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DateToString (buf2, sizeof buf2,
|
DateToString (buf2, sizeof buf2,
|
||||||
|
|||||||
Reference in New Issue
Block a user