Commit 3667ab50 authored by Fabio Bas's avatar Fabio Bas
Browse files

Fix compilation warning introduced in #246

/cockatrice/src/main.cpp:162:16: warning: format string is not a string
literal (potentially insecure) [-Wformat-security]
        qDebug("Could not create " +
settingsCache->getPicsPath().toUtf8() + "/CUSTOM. Will fall back on
default card images.");
parent 9ba2ae71
......@@ -30,6 +30,7 @@
#include <QIcon>
#include <QDir>
#include <QDesktopServices>
#include <QDebug>
#include "main.h"
#include "window_main.h"
......@@ -159,7 +160,7 @@ int main(int argc, char *argv[])
settingsCache->setPicsPath(dataDir + "/pics");
}
if (!QDir().mkpath(settingsCache->getPicsPath() + "/CUSTOM"))
qDebug("Could not create " + settingsCache->getPicsPath().toUtf8() + "/CUSTOM. Will fall back on default card images.");
qDebug() << "Could not create " + settingsCache->getPicsPath().toUtf8() + "/CUSTOM. Will fall back on default card images.";
#ifdef Q_OS_MAC
if(settingsCache->getHandBgPath().isEmpty() &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment