diff options
-rw-r--r-- | scumm/script_v72he.cpp | 2 | ||||
-rw-r--r-- | scumm/script_v7he.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 7168c03d12..891cf9af45 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2113,7 +2113,7 @@ void ScummEngine_v72he::o72_readINI() { entry = (ConfMan.get((char *)option).c_str()); writeVar(0, 0); - len = resStrLen((const byte *)entry) + 1; + len = resStrLen((const byte *)entry); ah = defineArray(0, kStringArray, 0, 0, 0, len); memcpy(ah->data, entry, len); diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index b1e8ea03b1..6950a887d3 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -912,7 +912,7 @@ void ScummEngine_v70he::o70_readINI() { entry = (ConfMan.get((char *)option).c_str()); writeVar(0, 0); - len = resStrLen((const byte *)entry) + 1; + len = resStrLen((const byte *)entry); ah = defineArray(0, kStringArray, 0, len); memcpy(ah->data, entry, len); |