Avoid passing plain strings as format

Introduced in #2111, this gets caught by GCC's -Wformat-security which
is enabled as an error in our nightly builds.
This commit is contained in:
Colomban Wendling 2019-04-09 14:50:54 +02:00
parent e2d2a569f2
commit ccbf0df24a

View File

@ -1182,8 +1182,8 @@ gint main_lib(gint argc, gchar **argv)
{
const gchar *message =
_("IPC socket could not be created, see Help->Debug Messages for details.");
ui_set_statusbar(TRUE, message);
g_warning(message);
ui_set_statusbar(TRUE, "%s", message);
g_warning("%s", message);
}
/* apply all configuration options */