[Scummvm-cvs-logs] scummvm master -> 97eb3546724bda5175fcd854326e8427b2365eef

bluegr md5 at scummvm.org
Mon Oct 10 01:19:31 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
97eb354672 AGI: Fixed bug #3420859 - "AGI: SQ0 - Scummvm Crash"


Commit: 97eb3546724bda5175fcd854326e8427b2365eef
    https://github.com/scummvm/scummvm/commit/97eb3546724bda5175fcd854326e8427b2365eef
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-10-09T16:12:48-07:00

Commit Message:
AGI: Fixed bug #3420859 - "AGI: SQ0 - Scummvm Crash"

The length requested in this case is 250, which overflows a char variable

Changed paths:
    engines/agi/text.cpp



diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 502db4b..d502758 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -224,7 +224,8 @@ void AgiEngine::printTextConsole(const char *msg, int x, int y, int len, int fg,
  * Based on GBAGI implementation with permission from the author
  */
 char *AgiEngine::wordWrapString(const char *s, int *len) {
-	char *outStr, *msgBuf, maxWidth = *len;
+	char *outStr, *msgBuf;
+	int maxWidth = *len;
 	const char *pWord;
 	int lnLen, wLen;
 






More information about the Scummvm-git-logs mailing list