aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/anim.cpp
diff options
context:
space:
mode:
authorStrangerke2014-03-16 14:24:45 +0100
committerStrangerke2014-03-16 14:24:45 +0100
commit95728f48904ad20f0a36b33d0bd30e4bccc9fa21 (patch)
tree257c8d92a1c7779c3328882c2b28f46b012adcf4 /engines/cine/anim.cpp
parent8f6971ae61559cefae92efc6feca4a4373a35b55 (diff)
downloadscummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.tar.gz
scummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.tar.bz2
scummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.zip
CINE: Avoid possible string buffer overrun by using strlcpy and strlcat
Diffstat (limited to 'engines/cine/anim.cpp')
-rw-r--r--engines/cine/anim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp
index f47b33bf16..c6099447d8 100644
--- a/engines/cine/anim.cpp
+++ b/engines/cine/anim.cpp
@@ -287,7 +287,7 @@ void AnimData::load(byte *d, int type, uint16 w, uint16 h, int16 file,
_fileIdx = file;
_frameIdx = frame;
memset(_name, 0, sizeof(_name));
- strcpy(_name, n);
+ Common::strlcpy(_name, n, sizeof(_name));
_realWidth = w;
switch (type) {