[Scummvm-git-logs] scummvm master -> 5b9bcb4efb0d4e327b861c4ee758d1bfee822dff
lephilousophe
lephilousophe at users.noreply.github.com
Fri Jul 16 10:54:58 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5b9bcb4efb SAGA: Fix compilation on C++98 platforms
Commit: 5b9bcb4efb0d4e327b861c4ee758d1bfee822dff
https://github.com/scummvm/scummvm/commit/5b9bcb4efb0d4e327b861c4ee758d1bfee822dff
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-07-16T12:53:53+02:00
Commit Message:
SAGA: Fix compilation on C++98 platforms
Changed paths:
engines/saga/saveload.cpp
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp
index f8898ef45b..9835eda66a 100644
--- a/engines/saga/saveload.cpp
+++ b/engines/saga/saveload.cpp
@@ -158,7 +158,7 @@ void SagaEngine::fillSaveList() {
cp = Common::kWindows932;
}
- Common::strlcpy(_saveFiles[_saveFilesCount].name, Common::U32String(_saveHeader.name).encode(cp).c_str(), sizeof(SaveFileData::name));
+ Common::strlcpy(_saveFiles[_saveFilesCount].name, Common::U32String(_saveHeader.name).encode(cp).c_str(), sizeof(_saveFiles[_saveFilesCount].name));
_saveFiles[_saveFilesCount].slotNumber = slotNumber;
delete in;
_saveFilesCount++;
More information about the Scummvm-git-logs
mailing list