diff options
author | Tobias Mueller <tobiasmue@gnome.org> | 2010-04-12 18:26:31 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-05-27 22:41:36 +0200 |
commit | 1d9db2c6f08f73b1620781279db936fc5c6c6485 (patch) | |
tree | 783715faf1f7346602ccd3257ee1639f5249ab7b /gobject-introspection | |
parent | 368d71448acad0546efbb203c08a093ec43611a4 (diff) | |
download | vala-1d9db2c6f08f73b1620781279db936fc5c6c6485.tar.gz |
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.
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/scanner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject-introspection/scanner.c b/gobject-introspection/scanner.c index 43a8303e8..d98af491f 100644 --- a/gobject-introspection/scanner.c +++ b/gobject-introspection/scanner.c @@ -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; |