From a7c881e56d97062e39482aeb357b8023c3b3de38 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 14 Sep 2019 00:26:47 +0100 Subject: SUPERNOVA: Replace String Copy With Safer ScummVM Common Version --- engines/supernova/supernova2/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/supernova/supernova2') diff --git a/engines/supernova/supernova2/state.cpp b/engines/supernova/supernova2/state.cpp index 8c94f1e518..28a2c0a710 100644 --- a/engines/supernova/supernova2/state.cpp +++ b/engines/supernova/supernova2/state.cpp @@ -1298,7 +1298,7 @@ void GameManager2::drawClock() { s[0] = time % 10 + 48; time /= 10; _vm->renderText(s, 293, 180, kColorWhite99); - strcpy(s, " 0:00"); + Common::strlcpy(s, " 0:00", sizeof(s)); s[4] = time % 10 + 48; time /= 10; s[3] = time % 10 + 48; -- cgit v1.2.3