mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
GUI: strncat needs a destination C-string
This commit is contained in:
parent
4920b3ab3e
commit
06d83f148f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user