aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-22 06:26:05 +0100
committerEugene Sandulenko2016-02-22 18:45:58 +0100
commitdd6119bdad9f7b7d1c9224d70bc44221826eb0b3 (patch)
tree5e540a002860ce001f56d8cbb0a6fb8a6174ef84 /engines/wage
parent2c247a03e935027eda91757f5a064d9bd714e791 (diff)
downloadscummvm-rg350-dd6119bdad9f7b7d1c9224d70bc44221826eb0b3.tar.gz
scummvm-rg350-dd6119bdad9f7b7d1c9224d70bc44221826eb0b3.tar.bz2
scummvm-rg350-dd6119bdad9f7b7d1c9224d70bc44221826eb0b3.zip
WAGE: Fix buffer overrun
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/world.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index 73abebc38d..1ef2ea4467 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -509,8 +509,8 @@ const char *World::getAboutMenuItemName() {
const char *pos = strchr(str, '@');
if (pos) {
strncat(menu, str, (pos - str));
- strncat(menu, _name.c_str(), 256);
- strncat(menu, pos + 1, 256);
+ strncat(menu, _name.c_str(), 255);
+ strncat(menu, pos + 1, 255);
}
}