PARALLACTION: More string safety

This commit is contained in:
Eugene Sandulenko 2016-05-30 13:40:23 +02:00
parent 1fc54e0086
commit 6eba4dd363

View File

@ -352,8 +352,8 @@ void Parallaction_ns::changeLocation() {
}
char location[200];
strcpy(location, _newLocationName.c_str());
strcpy(_location._name, _newLocationName.c_str());
Common::strlcpy(location, _newLocationName.c_str(), 200);
Common::strlcpy(_location._name, _newLocationName.c_str(), 100);
debugC(1, kDebugExec, "changeLocation(%s)", location);