[Scummvm-cvs-logs] SF.net SVN: scummvm:[40556] scummvm/trunk/engines/sci/engine/kstring.cpp

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Thu May 14 13:27:54 CEST 2009


Revision: 40556
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40556&view=rev
Author:   waltervn
Date:     2009-05-14 11:27:54 +0000 (Thu, 14 May 2009)

Log Message:
-----------
SCI: Message: fix K_MESSAGE_SIZE

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kstring.cpp

Modified: scummvm/trunk/engines/sci/engine/kstring.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kstring.cpp	2009-05-14 11:15:36 UTC (rev 40555)
+++ scummvm/trunk/engines/sci/engine/kstring.cpp	2009-05-14 11:27:54 UTC (rev 40556)
@@ -817,7 +817,7 @@
 		MessageState tempState;
 
 		if (tempState.loadRes(s->resmgr, UKPV(1), false) && tempState.findTuple(tuple) && tempState.getMessage())
-			return make_reg(0, strlen(tempState.getText()));
+			return make_reg(0, strlen(tempState.getText()) + 1);
 		else
 			return NULL_REG;
 	}


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