From 95728f48904ad20f0a36b33d0bd30e4bccc9fa21 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 16 Mar 2014 14:24:45 +0100 Subject: CINE: Avoid possible string buffer overrun by using strlcpy and strlcat --- engines/cine/anim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/cine/anim.cpp') 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) { -- cgit v1.2.3