[Scummvm-cvs-logs] scummvm master -> 023783907fa21ec3ac38364ae44d55c813617e27

athrxx athrxx at scummvm.org
Mon Sep 2 20:02:49 CEST 2013


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:
023783907f LOL: fix bug #3614957 (LOL : Crash when subtitles displayed)


Commit: 023783907fa21ec3ac38364ae44d55c813617e27
    https://github.com/scummvm/scummvm/commit/023783907fa21ec3ac38364ae44d55c813617e27
Author: athrxx (athrxx at scummvm.org)
Date: 2013-09-02T10:59:59-07:00

Commit Message:
LOL: fix bug #3614957 (LOL : Crash when subtitles displayed)

Changed paths:
    engines/kyra/text_rpg.cpp



diff --git a/engines/kyra/text_rpg.cpp b/engines/kyra/text_rpg.cpp
index a19d678..24c523c 100644
--- a/engines/kyra/text_rpg.cpp
+++ b/engines/kyra/text_rpg.cpp
@@ -129,7 +129,7 @@ void TextDisplayer_rpg::displayText(char *str, ...) {
 	uint16 charsPerLine = (sd->w << 3) / (_screen->getFontWidth() + _screen->_charWidth);
 
 	while (c) {
-		char a = tolower(_ctrl[1]);
+		char a = tolower((unsigned char)_ctrl[1]);
 
 		if (!_tempString2 && c == '%') {
 			if (a == 'd') {






More information about the Scummvm-git-logs mailing list