diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index 960fe27bf..da1e6b8a4 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -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)