Merge pull request #2094 from lemondrops/master

qt: clear the filename buffer in plat_tempfile
This commit is contained in:
David Hrdlička
2022-02-10 15:58:49 +01:00
committed by GitHub

View File

@@ -258,7 +258,7 @@ plat_tempfile(char *bufp, char *prefix, char *suffix)
name.append(QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss-zzzz"));
if (suffix) name.append(suffix);
sprintf(&bufp[strlen(bufp)], "%s", name.toUtf8().data());
strcpy(bufp, name.toUtf8().data());
}
void plat_remove(char* path)