[Scummvm-cvs-logs] scummvm master -> 72acac58b6f8fffc52d4e4a0b26638a9acbf3ffe

wjp wjp at usecode.org
Tue May 17 21:23:40 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:
72acac58b6 AGI: Cleanup


Commit: 72acac58b6f8fffc52d4e4a0b26638a9acbf3ffe
    https://github.com/scummvm/scummvm/commit/72acac58b6f8fffc52d4e4a0b26638a9acbf3ffe
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2011-05-17T12:21:51-07:00

Commit Message:
AGI: Cleanup

Changed paths:
    engines/agi/text.cpp



diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 0f60d45..fedfd29 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -89,8 +89,11 @@ void AgiEngine::printText2(int l, const char *msg, int foff, int xoff, int yoff,
 				x1++;
 
 				// DF: changed the len-1 to len...
-				if (x1 == len && m[len] != '\n')
-					y1++, x1 = foff = 0;
+				// FIXME: m[len] doesn't make sense and may read out of bounds?
+				if (x1 == len && m[len] != '\n') {
+					y1++;
+					x1 = foff = 0;
+				}
 			} else {
 				y1++;
 				x1 = foff = 0;






More information about the Scummvm-git-logs mailing list