aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-18 10:17:18 +0100
committerEugene Sandulenko2016-02-18 10:30:34 +0100
commita2dcddc06d945b443e897c8b60c1f7d5f8169637 (patch)
tree81e320bd37ef70b3c980a9b6770ec73b42b293ea /engines
parentab9e2fdca39034fad19e17e271886dc88839a201 (diff)
downloadscummvm-rg350-a2dcddc06d945b443e897c8b60c1f7d5f8169637.tar.gz
scummvm-rg350-a2dcddc06d945b443e897c8b60c1f7d5f8169637.tar.bz2
scummvm-rg350-a2dcddc06d945b443e897c8b60c1f7d5f8169637.zip
WAGE: Safer string concatenation
Diffstat (limited to 'engines')
-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 066c39422f..6c74911a86 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));
- strcat(menu, _name.c_str());
- strcat(menu, pos + 1);
+ strncat(menu, _name.c_str(), 256);
+ strncat(menu, pos + 1, 256);
}
}