Merge pull request #2094 from lemondrops/master
qt: clear the filename buffer in plat_tempfile
This commit is contained in:
@@ -258,7 +258,7 @@ plat_tempfile(char *bufp, char *prefix, char *suffix)
|
|||||||
|
|
||||||
name.append(QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss-zzzz"));
|
name.append(QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss-zzzz"));
|
||||||
if (suffix) name.append(suffix);
|
if (suffix) name.append(suffix);
|
||||||
sprintf(&bufp[strlen(bufp)], "%s", name.toUtf8().data());
|
strcpy(bufp, name.toUtf8().data());
|
||||||
}
|
}
|
||||||
|
|
||||||
void plat_remove(char* path)
|
void plat_remove(char* path)
|
||||||
|
Reference in New Issue
Block a user