[krb5-auth-dialog] fix -Wformat-security warnings



commit 6f2502dc0c4d9afd164d7f09946eff11d3596783
Author: Christian Persch <chpe gnome org>
Date:   Fri May 8 19:04:36 2009 +0200

    fix -Wformat-security warnings
    
    BZ: #581902
---
 ChangeLog                   |    7 +++++++
 etpo/lexer.l                |    4 ++--
 src/krb5-auth-gconf-tools.c |    6 +++---
 src/krb5-auth-gconf.c       |    2 +-
 4 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0863323..8d31159 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun May 10 21:36:48 CEST 2009 Guido Günther <agx sigxcpu org>
+
+	* src/krb5-auth-gconf-tools.c: fix -Wformat-security warnings
+	* src/krb5-auth-gconf.c: likewise
+	* etopo/lexer.l: likewise
+	BZ: #581902 - patch by Christian Persch
+
 Thu May  7 10:39:32 CEST 2009 Guido Günther <agx sigxcpu org>
 
 	Switch from Libglade to GtkBuilder
diff --git a/etpo/lexer.l b/etpo/lexer.l
index 9b5fee7..e8e0d7a 100644
--- a/etpo/lexer.l
+++ b/etpo/lexer.l
@@ -103,14 +103,14 @@ static void
 header(void)
 {
 	const char *boilerplate = "const char *dummy = {\n";
-	printf(boilerplate);
+	printf("%s", boilerplate);
 }
 
 static void
 tail(void)
 {
 	const char *boilerplate = "};\n";
-	printf(boilerplate);
+	printf("%s", boilerplate);
 }
 
 int
diff --git a/src/krb5-auth-gconf-tools.c b/src/krb5-auth-gconf-tools.c
index fb67999..8b4add2 100644
--- a/src/krb5-auth-gconf-tools.c
+++ b/src/krb5-auth-gconf-tools.c
@@ -39,7 +39,7 @@ ka_gconf_get_string (GConfClient* client,
 			*value = g_strdup (gconf_value_get_string (gc_value));
 			success = TRUE;
 		} else if (error) {
-				g_print (error->message);
+				g_print ("%s", error->message);
 				g_error_free (error);
 		}
 		gconf_value_free (gc_value);
@@ -66,7 +66,7 @@ ka_gconf_get_int (GConfClient* client,
 			*value = gconf_value_get_int (gc_value);
 			success = TRUE;
 		} else if (error) {
-				g_print (error->message);
+				g_print ("%s", error->message);
 				g_error_free (error);
 		}
 		gconf_value_free (gc_value);
@@ -92,7 +92,7 @@ ka_gconf_get_bool (GConfClient* client,
 			*value = gconf_value_get_bool (gc_value);
 			success = TRUE;
 		} else if (error) {
-				g_print (error->message);
+				g_print ("%s", error->message);
 				g_error_free (error);
 		}
 		gconf_value_free (gc_value);
diff --git a/src/krb5-auth-gconf.c b/src/krb5-auth-gconf.c
index 497b1a7..fec5457 100644
--- a/src/krb5-auth-gconf.c
+++ b/src/krb5-auth-gconf.c
@@ -203,7 +203,7 @@ ka_gconf_init (KaApplet* applet,
 	success = TRUE;
 out:
 	if(error) {
-		g_print (error->message);
+		g_print ("%s", error->message);
 		g_error_free (error);
 	}
 	return success;



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