aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-11-03 02:27:26 +0100
committerJohannes Schickel2011-11-03 02:27:26 +0100
commit31e5b96fae452e7f4d71dedf8e4303887a971728 (patch)
treeb8ffc9616f49403e05cd5c9f80d6f41626d56862 /engines
parent3ad89a0d18f3cc1e20042288f37af99fedfabe0c (diff)
downloadscummvm-rg350-31e5b96fae452e7f4d71dedf8e4303887a971728.tar.gz
scummvm-rg350-31e5b96fae452e7f4d71dedf8e4303887a971728.tar.bz2
scummvm-rg350-31e5b96fae452e7f4d71dedf8e4303887a971728.zip
LASTEXPRESS: Fix read size parameter.
Diffstat (limited to 'engines')
-rw-r--r--engines/lastexpress/game/savegame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/game/savegame.cpp b/engines/lastexpress/game/savegame.cpp
index e5b84ea6de..9c464feb6e 100644
--- a/engines/lastexpress/game/savegame.cpp
+++ b/engines/lastexpress/game/savegame.cpp
@@ -154,11 +154,11 @@ void SaveLoad::loadStream(GameId id) {
error("[SaveLoad::loadStream] Savegame stream is invalid");
// Load all savegame data
- uint8* buf = new uint8[8192];
+ uint8 *buf = new uint8[8192];
while (!save->eos() && !save->err()) {
_engine->pollEvents();
- uint32 count = save->read(buf, sizeof(*buf));
+ uint32 count = save->read(buf, 8192);
if (count) {
uint32 w = _savegame->write(buf, count);
assert (w == count);