diff options
author | Travis Howell | 2008-12-26 06:18:39 +0000 |
---|---|---|
committer | Travis Howell | 2008-12-26 06:18:39 +0000 |
commit | 3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a (patch) | |
tree | f71707240e6e7131691288199e9fe3da0b003478 /engines/scumm/he | |
parent | b3b23642bfc1da1deb8362b9dfb8c8f01b430c5b (diff) | |
download | scummvm-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.cpp | 2 |
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; |