[packages/glib] - compilation fixes

witekfl witekfl at pld-linux.org
Tue Jan 14 17:47:18 CET 2014


commit f3e79936d5c3adedf2ddc97fe1db30bc34793bde
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Jan 14 17:45:34 2014 +0100

    - compilation fixes

 format-security.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
---
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..c036394
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,22 @@
+--- glib-1.2.10/grel.c.orig	2014-01-14 17:20:07.681398131 +0100
++++ glib-1.2.10/grel.c	2014-01-14 17:25:29.556375837 +0100
+@@ -413,7 +413,7 @@ g_relation_print_one (gpointer tuple_key
+     }
+   
+   g_string_append (gstring, "]");
+-  g_log (g_log_domain_glib, G_LOG_LEVEL_INFO, gstring->str);
++  g_log (g_log_domain_glib, G_LOG_LEVEL_INFO, "%s", gstring->str);
+   g_string_free (gstring, TRUE);
+ }
+ 
+--- glib-1.2.10/testglib.c.orig	2014-01-14 17:30:27.014309291 +0100
++++ glib-1.2.10/testglib.c	2014-01-14 17:32:34.106274731 +0100
+@@ -901,7 +901,7 @@ main (int   argc,
+   g_warning ("harmless warning with parameters: %d %s %#x", 42, "Boo", 12345);
+   g_message ("the next warning is a test:");
+   string = NULL;
+-  g_print (string);
++  g_print (NULL);
+ 
+   g_print ("checking endian macros (host is ");
+ #if G_BYTE_ORDER == G_BIG_ENDIAN
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glib.git/commitdiff/d3a04f81e37ed799830064e19448c2816ba45e69



More information about the pld-cvs-commit mailing list