[Scummvm-cvs-logs] SF.net SVN: scummvm:[45065] scummvm/trunk/engines/sci/gui/gui_gfx.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Wed Oct 14 12:25:07 CEST 2009
Revision: 45065
http://scummvm.svn.sourceforge.net/scummvm/?rev=45065&view=rev
Author: m_kiewitz
Date: 2009-10-14 10:25:06 +0000 (Wed, 14 Oct 2009)
Log Message:
-----------
SCI/newgui: fixes textcode processing to get out if string ends and no ending delimiter found
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui_gfx.cpp
Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-14 10:11:03 UTC (rev 45064)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-14 10:25:06 UTC (rev 45065)
@@ -336,7 +336,7 @@
unsigned char curCodeParm;
// Find the end of the textcode
- while ((++textCodeSize) && (*text++ != 0x7C)) { }
+ while ((++textCodeSize) && (*text != 0) && (*text++ != 0x7C)) { }
// possible TextCodes:
// c -> sets textColor to current port pen color
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list