GUI: strncat needs a destination C-string

This commit is contained in:
Bertrand Augereau 2015-11-09 23:25:49 +01:00
parent 4920b3ab3e
commit 06d83f148f

View File

@ -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);