diff options
| author | D G Turner | 2019-09-15 18:15:19 +0100 |
|---|---|---|
| committer | D G Turner | 2019-09-15 18:15:19 +0100 |
| commit | 28fe02eb305d3de8e3e2da5791b0f7c74d68c255 (patch) | |
| tree | 2d6b5dc929b3bb0d4faec67fd4ced43bdae2324a /engines/toon/resource.cpp | |
| parent | 04242ce829bd55f03e084b85a23055b23e598fb6 (diff) | |
| download | scummvm-rg350-28fe02eb305d3de8e3e2da5791b0f7c74d68c255.tar.gz scummvm-rg350-28fe02eb305d3de8e3e2da5791b0f7c74d68c255.tar.bz2 scummvm-rg350-28fe02eb305d3de8e3e2da5791b0f7c74d68c255.zip | |
TOON: Replace Various String Functions with Common String Usage
This removes the dependency on the unsafe strcpy and strcat string
functions with usage of Common::String instead.
Diffstat (limited to 'engines/toon/resource.cpp')
| -rw-r--r-- | engines/toon/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/toon/resource.cpp b/engines/toon/resource.cpp index f7c02d5f10..3dbb6557fd 100644 --- a/engines/toon/resource.cpp +++ b/engines/toon/resource.cpp @@ -273,7 +273,7 @@ void PakFile::open(Common::SeekableReadStream *rs, const Common::String &packNam currentPos += 4 + nameSize; PakFile::File newFile; - strcpy(newFile._name, name); + Common::strlcpy(newFile._name, name, sizeof(newFile._name)); newFile._offset = offset; newFile._size = nextOffset - offset; _numFiles++; |
