[Scummvm-git-logs] scummvm master -> a7c881e56d97062e39482aeb357b8023c3b3de38

digitall dgturner at iee.org
Sat Sep 14 01:30:02 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a7c881e56d SUPERNOVA: Replace String Copy With Safer ScummVM Common Version


Commit: a7c881e56d97062e39482aeb357b8023c3b3de38
    https://github.com/scummvm/scummvm/commit/a7c881e56d97062e39482aeb357b8023c3b3de38
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-14T00:26:47+01:00

Commit Message:
SUPERNOVA: Replace String Copy With Safer ScummVM Common Version

Changed paths:
    engines/supernova/supernova2/state.cpp


diff --git a/engines/supernova/supernova2/state.cpp b/engines/supernova/supernova2/state.cpp
index 8c94f1e..28a2c0a 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;





More information about the Scummvm-git-logs mailing list