qt: clear the filename buffer in plat_tempfile

This commit is contained in:
Alexander Babikov
2022-02-10 19:54:20 +05:00
parent 5f89c1c29a
commit 3447d96fe0

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)