diff options
author | Walter van Niftrik | 2009-05-14 11:27:54 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-05-14 11:27:54 +0000 |
commit | f64df361e0fa786e34092060ee8caa73440f5336 (patch) | |
tree | ed6d73942a61dbd303452956053d9339e35d1aef /engines/sci/engine | |
parent | c3eaef2a958ff94172b2de49913f7f19506209d9 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |