aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorWalter van Niftrik2009-05-14 11:27:54 +0000
committerWalter van Niftrik2009-05-14 11:27:54 +0000
commitf64df361e0fa786e34092060ee8caa73440f5336 (patch)
treeed6d73942a61dbd303452956053d9339e35d1aef /engines/sci/engine
parentc3eaef2a958ff94172b2de49913f7f19506209d9 (diff)
downloadscummvm-rg350-f64df361e0fa786e34092060ee8caa73440f5336.tar.gz
scummvm-rg350-f64df361e0fa786e34092060ee8caa73440f5336.tar.bz2
scummvm-rg350-f64df361e0fa786e34092060ee8caa73440f5336.zip
SCI: Message: fix K_MESSAGE_SIZE
svn-id: r40556
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 78fb120343..b1081ac8ff 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -817,7 +817,7 @@ reg_t kMessage(EngineState *s, int funct_nr, int argc, reg_t *argv) {
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;
}