diff options
author | Eugene Sandulenko | 2017-03-27 07:57:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-27 08:04:20 +0200 |
commit | b8a07d38d534a43b5963b6586d47144a65206671 (patch) | |
tree | 6797afcfbad094559304f2cda207c7e7b7ee0aee /engines/fullpipe/scene.cpp | |
parent | a925264fb03a8ccbde9390fd9a18be23232851dd (diff) | |
download | scummvm-rg350-b8a07d38d534a43b5963b6586d47144a65206671.tar.gz scummvm-rg350-b8a07d38d534a43b5963b6586d47144a65206671.tar.bz2 scummvm-rg350-b8a07d38d534a43b5963b6586d47144a65206671.zip |
FULLPIPE: Safer string management
Diffstat (limited to 'engines/fullpipe/scene.cpp')
-rw-r--r-- | engines/fullpipe/scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index b5508da0ba..74a824f018 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -213,8 +213,8 @@ bool Scene::load(MfcArchive &file) { if (_picObjList.size() > 0 && !_bgname.empty()) { char fname[260]; - strcpy(fname, _bgname.c_str()); - strcpy(strrchr(fname, '.') + 1, "col"); + Common::strlcpy(fname, _bgname.c_str(), 260); + Common::strlcpy(strrchr(fname, '.') + 1, "col", 260); MemoryObject *col = new MemoryObject(); col->loadFile(fname); |