diff options
Diffstat (limited to 'engines/sword25/kernel/persistenceservice.cpp')
-rw-r--r-- | engines/sword25/kernel/persistenceservice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/kernel/persistenceservice.cpp b/engines/sword25/kernel/persistenceservice.cpp index e3f3347799..aeadc2fe9d 100644 --- a/engines/sword25/kernel/persistenceservice.cpp +++ b/engines/sword25/kernel/persistenceservice.cpp @@ -339,10 +339,10 @@ bool BS_PersistenceService::SaveGame(unsigned int SlotID, const Common::String & // Länge der komprimierten Daten und der unkomprimierten Daten in die Datei schreiben. char sBuffer[10]; - ltoa(CompressedLength, sBuffer, 10); + snprintf(sBuffer, 10, "%ld", CompressedLength); File->writeString(sBuffer); File->writeByte(' '); - ltoa(Writer.GetDataSize(), sBuffer, 10); + snprintf(sBuffer, 10, "%uld", Writer.GetDataSize()); File->writeString(sBuffer); File->writeByte(' '); |