diff options
author | Strangerke | 2013-10-30 21:34:24 +0100 |
---|---|---|
committer | Strangerke | 2013-10-30 22:43:59 +0100 |
commit | 22df279adc710294e69b1c9b44df56673489121d (patch) | |
tree | 2fd04a36893366cdcaac2b31e62d5e75407e168a /engines/toon/anim.cpp | |
parent | d9638677d2210af9012f4af038804eb5774358b4 (diff) | |
download | scummvm-rg350-22df279adc710294e69b1c9b44df56673489121d.tar.gz scummvm-rg350-22df279adc710294e69b1c9b44df56673489121d.tar.bz2 scummvm-rg350-22df279adc710294e69b1c9b44df56673489121d.zip |
TOON: replace strncpy by strlcpy as suggested by LordHoto
Diffstat (limited to 'engines/toon/anim.cpp')
-rw-r--r-- | engines/toon/anim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/toon/anim.cpp b/engines/toon/anim.cpp index 76b4154d61..19e997af34 100644 --- a/engines/toon/anim.cpp +++ b/engines/toon/anim.cpp @@ -41,7 +41,7 @@ bool Animation::loadAnimation(const Common::String &file) { if (strncmp((char *)fileData, "KevinAguilar", 12)) return false; - strncpy(_name, file.c_str(), 32); + Common::strlcpy(_name, file.c_str(), 32); uint32 headerSize = READ_LE_UINT32(fileData + 16); uint32 uncompressedBytes = READ_LE_UINT32(fileData + 20); |