* font-viewer/ftstream-vfs.c: (vfs_stream_open): Safely printf

strings. Bug #581731.
This commit is contained in:
Christian Persch 2009-05-07 23:29:47 +02:00
parent af03baa1bc
commit 4864d99794
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-05-07 Christian Persch <chpe@gnome.org>
* font-viewer/ftstream-vfs.c: (vfs_stream_open): Safely printf
strings. Bug #581731.
2009-03-16 Rodrigo Moya <rodrigo@gnome-db.org>
* NEWS:

View file

@ -80,7 +80,7 @@ vfs_stream_open(FT_Stream stream,
handle = g_file_read (file, NULL, &error);
if (! handle) {
g_message (error->message);
g_message ("%s", error->message);
g_object_unref (file);
g_error_free (error);
@ -92,7 +92,7 @@ vfs_stream_open(FT_Stream stream,
g_object_unref (file);
if (! info) {
g_warning (error->message);
g_warning ("%s", error->message);
g_error_free (error);
return FT_Err_Cannot_Open_Resource;