Commit 1d9db2c6 authored by Tobias Mueller's avatar Tobias Mueller Committed by Jürg Billeter

gobject-introspection: Use proper format string for g_error

g_error expects a format string as first argument which it is now
given. This fixes a potential format string vulnerability.

Fixes bug 615552.
parent 368d7144
......@@ -1582,7 +1582,7 @@ g_igenerator_start_preprocessor (GIGenerator *igenerator,
tmp = g_file_open_tmp (NULL, &tmpname, &error);
if (error != NULL)
{
g_error (error->message);
g_error ("%s", error->message);
return NULL;
}
......@@ -1617,7 +1617,7 @@ g_igenerator_start_preprocessor (GIGenerator *igenerator,
f = fdopen (tmp, "r");
if (!f)
{
g_error (strerror (errno));
g_error ("%s", strerror (errno));
unlink (tmpname);
g_free (tmpname);
return NULL;
......
Markdown is supported
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