[Scummvm-cvs-logs] scummvm master -> cf178e3343db757da67072f6802b48f0b5318a5d

tramboi bertrand_augereau at yahoo.fr
Mon Nov 9 23:26:28 CET 2015


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:
cf178e3343 COMMON: strncat needs a destination C-string


Commit: cf178e3343db757da67072f6802b48f0b5318a5d
    https://github.com/scummvm/scummvm/commit/cf178e3343db757da67072f6802b48f0b5318a5d
Author: Bertrand Augereau (bertrand.augereau at gmail.com)
Date: 2015-11-09T23:25:49+01:00

Commit Message:
COMMON: strncat needs a destination C-string

Changed paths:
    gui/ThemeEngine.cpp



diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 016cfc1..0e935a9 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -746,6 +746,7 @@ bool ThemeEngine::loadDefaultXML() {
 		xmllen += strlen(defaultXML[i]);
 
 	byte *tmpXML = (byte *)malloc(xmllen + 1);
+	tmpXML[0] ='\0';
 
 	for (int i = 0; i < ARRAYSIZE(defaultXML); i++)
 		strncat((char *)tmpXML, defaultXML[i], xmllen);






More information about the Scummvm-git-logs mailing list