aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he
diff options
context:
space:
mode:
authorTravis Howell2008-12-26 06:18:39 +0000
committerTravis Howell2008-12-26 06:18:39 +0000
commit3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a (patch)
treef71707240e6e7131691288199e9fe3da0b003478 /engines/scumm/he
parentb3b23642bfc1da1deb8362b9dfb8c8f01b430c5b (diff)
downloadscummvm-rg350-3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a.tar.gz
scummvm-rg350-3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a.tar.bz2
scummvm-rg350-3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a.zip
Fix crash after selecting name in Blue's ABC Time Activities, caused by an invalid write in wizPackType1().
svn-id: r35551
Diffstat (limited to 'engines/scumm/he')
-rw-r--r--engines/scumm/he/wiz_he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 62d81e2640..45b3af339e 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -952,7 +952,7 @@ static int wizPackType1(uint8 *dst, const uint8 *src, int srcPitch, const Common
if (dst) {
*dst++ = ((runCountDiff - 1) << 2) | 0;
memcpy(dst, diffBuffer, runCountDiff);
- dst += runCountDiff + 1;
+ dst += runCountDiff;
}
dataSize += runCountDiff + 1;
runCountDiff = 0;