From 22df279adc710294e69b1c9b44df56673489121d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 30 Oct 2013 21:34:24 +0100 Subject: TOON: replace strncpy by strlcpy as suggested by LordHoto --- engines/toon/anim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toon/anim.cpp') 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); -- cgit v1.2.3