From 3bbbcc38495ca65f44f6cf13d00bcbb3f4ef406a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 26 Dec 2008 06:18:39 +0000 Subject: Fix crash after selecting name in Blue's ABC Time Activities, caused by an invalid write in wizPackType1(). svn-id: r35551 --- engines/scumm/he/wiz_he.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3