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:
mcmartin
2009-11-25 03:38:49 +00:00
parent bd640f38dc
commit 700305b994
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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';
} }
+1 -1
View File
@@ -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,