From 66e683039510ce0d1b08995d902a60e0ceef4e25 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 17 Oct 2013 13:40:17 +0300 Subject: DRASCULA: Fix potential buffer overrun. CID 1003309 --- engines/drascula/drascula.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index cde00baa32..d7e80acf12 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -297,7 +297,7 @@ Common::Error DrasculaEngine::run() { memset(iconName, 0, sizeof(iconName)); for (i = 0; i < 6; i++) - strcpy(iconName[i + 1], _textverbs[i]); + strlcpy(iconName[i + 1], _textverbs[i], 13); assignPalette(defaultPalette); -- cgit v1.2.3