@@ -375,14 +375,13 @@ static bool FillGraphicsSetDetails(Graph
if (item == NULL) {
DEBUG(grf, 0, "No graphics file for: %s", _gft_names[i]);
return false;
}
const char *filename = item->value;
file->filename = MallocT<char>(strlen(filename) + strlen(path) + 1);
sprintf((char*)file->filename, "%s%s", path, filename);
file->filename = str_fmt("%s%s", path, filename);
/* Then find the MD5 checksum */
item = md5s->GetItem(filename, false);
DEBUG(grf, 0, "No MD5 checksum specified for: %s", filename);