diff options
author | Strangerke | 2014-03-07 19:33:31 +0100 |
---|---|---|
committer | Strangerke | 2014-03-07 19:33:31 +0100 |
commit | 88aa12387f433009c0de686f080f4af112d381a1 (patch) | |
tree | 0ea0dff009e321bd20812ed6a99e358bd37dc57c /engines/tucker | |
parent | 9ce5f1c90cf885a35758a804f5e6795058166211 (diff) | |
download | scummvm-rg350-88aa12387f433009c0de686f080f4af112d381a1.tar.gz scummvm-rg350-88aa12387f433009c0de686f080f4af112d381a1.tar.bz2 scummvm-rg350-88aa12387f433009c0de686f080f4af112d381a1.zip |
TUCKER: Avoid a potential string overrun by using strlcpy instead of strcpy
Diffstat (limited to 'engines/tucker')
-rw-r--r-- | engines/tucker/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp index af69651b9f..b9aa1117dc 100644 --- a/engines/tucker/resource.cpp +++ b/engines/tucker/resource.cpp @@ -279,7 +279,7 @@ Audio::RewindableAudioStream *CompressedSound::load(CompressedSoundType type, in void TuckerEngine::loadImage(const char *fname, uint8 *dst, int type) { char filename[80]; - strcpy(filename, fname); + Common::strlcpy(filename, fname, sizeof(filename)); Common::File f; if (!f.open(filename)) { |