SWORD25: Fix format string warning.

This commit is contained in:
eriktorbjorn 2011-05-14 15:09:03 +02:00
parent 530bf27af6
commit 7557cbd617

View File

@ -291,7 +291,7 @@ bool PersistenceService::saveGame(uint slotID, const Common::String &screenshotF
// Write the save game data uncompressed, since the final saved game will be
// compressed anyway.
char sBuffer[10];
snprintf(sBuffer, 10, "%ld", writer.getDataSize());
snprintf(sBuffer, 10, "%u", writer.getDataSize());
file->writeString(sBuffer);
file->writeByte(0);
snprintf(sBuffer, 10, "%u", writer.getDataSize());