mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
PARALLACTION: More string safety
This commit is contained in:
parent
1fc54e0086
commit
6eba4dd363
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user