Fix theoretically possible format string vulnerability

This commit is contained in:
wmayer
2019-02-11 11:49:12 +01:00
parent 2ac0851d4c
commit b1d086463d

View File

@@ -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());
}
}