File: 1004_Werror_format_security.patch

package info (click to toggle)
morla 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,352 kB
  • sloc: ansic: 25,010; sh: 8,903; xml: 224; makefile: 66
file content (27 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: add format arguments to avoid error with -Werror=format-security
Origin: vendor
Bug-Debian: http://bugs.debian.org/643442
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2011-11-03

--- a/src/about.c
+++ b/src/about.c
@@ -255,7 +255,7 @@
   gtk_table_attach (GTK_TABLE (box), button, 0, 1, i, i + 1,
 		    GTK_EXPAND | GTK_FILL, GTK_EXPAND, 3, 3);
 
-  g_snprintf (s, sizeof (s), librdf_version_string);
+  g_snprintf (s, sizeof (s), "%s", librdf_version_string);
   label = gtk_label_new (s);
   gtk_table_attach (GTK_TABLE (box), label, 1, 2, i, i + 1,
 		    GTK_EXPAND | GTK_FILL, GTK_EXPAND, 3, 3);
@@ -271,7 +271,7 @@
   gtk_table_attach (GTK_TABLE (box), button, 0, 1, i, i + 1,
 		    GTK_EXPAND | GTK_FILL, GTK_EXPAND, 3, 3);
 
-  g_snprintf (s, sizeof (s), rasqal_version_string);
+  g_snprintf (s, sizeof (s), "%s", rasqal_version_string);
   label = gtk_label_new (s);
   gtk_table_attach (GTK_TABLE (box), label, 1, 2, i, i + 1,
 		    GTK_EXPAND | GTK_FILL, GTK_EXPAND, 3, 3);