[Scummvm-git-logs] scummvm master -> 8b816cf0eacabd4169d3a343222488b3b8c93982
digitall
547637+digitall at users.noreply.github.com
Tue Apr 27 03:00:04 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:
8b816cf0ea AGOS: Fix format-overflow warnings
Commit: 8b816cf0eacabd4169d3a343222488b3b8c93982
https://github.com/scummvm/scummvm/commit/8b816cf0eacabd4169d3a343222488b3b8c93982
Author: Mathias Parnaudeau (mparnaudeau at optimum-software.fr)
Date: 2021-04-27T04:00:01+01:00
Commit Message:
AGOS: Fix format-overflow warnings
Slightly increase the destination buffer to satisfy the theorical
copy of 5 characters for a 16-bit value.
Changed paths:
engines/agos/res_snd.cpp
engines/agos/script_s1.cpp
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 059473695e..441a820016 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -322,7 +322,7 @@ void AGOSEngine::playSting(uint16 soundId) {
if (!_midi->_adLibMusic || !_midi->_enable_sfx)
return;
- char filename[15];
+ char filename[16];
Common::File mus_file;
uint16 mus_offset;
diff --git a/engines/agos/script_s1.cpp b/engines/agos/script_s1.cpp
index d7133ee5be..5f75c26a70 100644
--- a/engines/agos/script_s1.cpp
+++ b/engines/agos/script_s1.cpp
@@ -540,7 +540,7 @@ void AGOSEngine_Simon1::os1_loadStrings() {
// 185: load sound files
_soundFileId = getVarOrWord();
if (getPlatform() == Common::kPlatformAmiga && (getFeatures() & GF_TALKIE)) {
- char buf[10];
+ char buf[13];
sprintf(buf, "%d%s", _soundFileId, "Effects");
_sound->readSfxFile(buf);
sprintf(buf, "%d%s", _soundFileId, "simon");
More information about the Scummvm-git-logs
mailing list