[Scummvm-git-logs] scummvm master -> 947f7afd6b97b1339bfb98248c144ec5e4a548d6

Strangerke noreply at scummvm.org
Wed Mar 23 22:42:49 UTC 2022


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:
947f7afd6b CHEWY: fix coverity 1476364


Commit: 947f7afd6b97b1339bfb98248c144ec5e4a548d6
    https://github.com/scummvm/scummvm/commit/947f7afd6b97b1339bfb98248c144ec5e4a548d6
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2022-03-23T23:42:42+01:00

Commit Message:
CHEWY: fix coverity 1476364

Changed paths:
    engines/chewy/mcga_graphics.cpp


diff --git a/engines/chewy/mcga_graphics.cpp b/engines/chewy/mcga_graphics.cpp
index 8918add31b5..b6e4de54389 100644
--- a/engines/chewy/mcga_graphics.cpp
+++ b/engines/chewy/mcga_graphics.cpp
@@ -202,6 +202,8 @@ int16 McgaGraphics::scanxy(int16 x, int16 y, int16 fcol, int16 bcol, int16 cur_c
 	int16 delay_flag;
 	int8 ende = 0, zeichen, zaehler, cursor_z;
 	char zstring[81], z1string[81];
+	memset(zstring, 0, 81);
+	memset(z1string, 0, 81);
 	int8 einfuege_cur = 0;
 	unsigned char char_anf = 0, char_end = 0;
 	uint16 vorzeichen = 0;




More information about the Scummvm-git-logs mailing list