From b1d086463d2fb7763ceb87fdfffa8177d04e9941 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 11 Feb 2019 11:49:12 +0100 Subject: [PATCH] Fix theoretically possible format string vulnerability --- src/Gui/NetworkRetriever.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/NetworkRetriever.cpp b/src/Gui/NetworkRetriever.cpp index 29dc0f9cc6..581b4fd9d9 100644 --- a/src/Gui/NetworkRetriever.cpp +++ b/src/Gui/NetworkRetriever.cpp @@ -118,8 +118,8 @@ void NetworkRetriever::testFailure() if ( wget->state() == QProcess::Running ) { d->fail = false; - QString msg = tr("Download started...") + QString::fromUtf8("\n"); // all QString - Base::Console().Message(msg.toUtf8().constData()); // all cStyleString + QString msg = tr("Download started..."); + Base::Console().Message("%s\n", msg.toUtf8().constData()); } }