[glib] gio: Fix for -Wformat-security



commit e3fe25669227944381119852b89beead267c604c
Author: Rico Tzschichholz <ricotz t-online de>
Date:   Fri Jan 13 23:18:01 2012 +0100

    gio: Fix for -Wformat-security

 gio/gresourcefile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c
index 8299327..a261098 100644
--- a/gio/gresourcefile.c
+++ b/gio/gresourcefile.c
@@ -454,6 +454,7 @@ g_resource_file_query_info (GFile                *file,
 	    }
 	  else
 	    g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
+			 "%s",
 			 my_error->message);
 	  g_clear_error (&my_error);
 	  return FALSE;
@@ -554,6 +555,7 @@ g_resource_file_read (GFile         *file,
 	}
       else
 	g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
+		     "%s",
 		     my_error->message);
       g_clear_error (&my_error);
       return NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]