diff options
author | Travis Howell | 2004-01-01 09:00:40 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-01 09:00:40 +0000 |
commit | dcbbb04d3cb7f21d654f7098ab4dc3deb814fd6f (patch) | |
tree | f3e9d3b95f90706e71a1637f24585f52f9b06483 | |
parent | 9b4f73b8ef9c8d89dd5b0d8da2639a1156dbaf47 (diff) | |
download | scummvm-rg350-dcbbb04d3cb7f21d654f7098ab4dc3deb814fd6f.tar.gz scummvm-rg350-dcbbb04d3cb7f21d654f7098ab4dc3deb814fd6f.tar.bz2 scummvm-rg350-dcbbb04d3cb7f21d654f7098ab4dc3deb814fd6f.zip |
Reduce some buffers to more reasonable sizes.
svn-id: r12067
-rw-r--r-- | simon/simon.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index e0221bc740..570a544d3f 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -4473,7 +4473,7 @@ static bool decrunch_file_amiga (byte *src, byte *dst, uint32 size) { void SimonEngine::read_vga_from_datfile_1(uint vga_id) { if (_game & GF_OLD_BUNDLE) { File in; - char buf[50]; + char buf[15]; uint32 size; if (vga_id == 23) vga_id = 112; @@ -4515,7 +4515,7 @@ void SimonEngine::read_vga_from_datfile_1(uint vga_id) { byte *SimonEngine::read_vga_from_datfile_2(uint id) { if (_game & GF_OLD_BUNDLE) { File in; - char buf[50]; + char buf[15]; uint32 size; byte *dst; @@ -4852,7 +4852,7 @@ void SimonEngine::quick_load_or_save() { return; bool success; - char buf[256]; + char buf[50]; char *filename = gen_savename(_saveLoadSlot); if (_saveLoadFlag == 2) { @@ -5086,7 +5086,7 @@ bool SimonEngine::save_game(uint slot, char *caption) { } char *SimonEngine::gen_savename(int slot) { - static char buf[256]; + static char buf[15]; if (_game & GF_SIMON2) { sprintf(buf, "simon2.%.3d", slot); @@ -5253,7 +5253,7 @@ void SimonEngine::loadMusic (uint music) { _game_file->seek(_game_offsets_ptr[MUSIC_INDEX_BASE + music], SEEK_SET); midi.loadSMF (_game_file, music); } else { - char buf[50]; + char buf[15]; File f; sprintf(buf, "MOD%d.MUS", music); f.open(buf, _gameDataPath); |