rpcd: iwinfo plugin fixes
[openwrt.git] / package / libs / gettext-full / patches / 130-format-secuirty.patch
1 From c7197cad42d6269739f379025c2bec9e474c8027 Mon Sep 17 00:00:00 2001
2 From: Tobias Mueller <tobiasmue@gnome.org>
3 Date: Sat, 29 Jan 2011 16:31:30 +0100
4 Subject: Fixed format string issues by giving static literals, fixes bug
5  640897
6
7 ---
8  src/cr-statement.c | 10 +++++-----
9  tests/test2-main.c |  8 +++-----
10  tests/test3-main.c |  8 +++-----
11  3 files changed, 11 insertions(+), 15 deletions(-)
12
13 --- a/gettext-tools/gnulib-lib/libcroco/cr-statement.c
14 +++ b/gettext-tools/gnulib-lib/libcroco/cr-statement.c
15 @@ -2607,7 +2607,7 @@ cr_statement_dump_ruleset (CRStatement *
16          g_return_if_fail (a_fp && a_this);
17          str = cr_statement_ruleset_to_string (a_this, a_indent);
18          if (str) {
19 -                fprintf (a_fp, str);
20 +                fprintf (a_fp, "%s", str);
21                  g_free (str);
22                  str = NULL;
23          }
24 @@ -2658,7 +2658,7 @@ cr_statement_dump_charset (CRStatement *
25          str = cr_statement_charset_to_string (a_this,
26                                                a_indent) ;
27          if (str) {
28 -                fprintf (a_fp, str) ;
29 +                fprintf (a_fp, "%s", str) ;
30                  g_free (str) ;
31                  str = NULL ;
32          }
33 @@ -2685,7 +2685,7 @@ cr_statement_dump_page (CRStatement * a_
34  
35          str = cr_statement_at_page_rule_to_string (a_this, a_indent) ;
36          if (str) {
37 -                fprintf (a_fp, str);
38 +                fprintf (a_fp, "%s", str);
39                  g_free (str) ;
40                  str = NULL ; 
41          }
42 @@ -2711,7 +2711,7 @@ cr_statement_dump_media_rule (CRStatemen
43  
44          str = cr_statement_media_rule_to_string (a_this, a_indent) ;
45          if (str) {
46 -                fprintf (a_fp, str) ;
47 +                fprintf (a_fp, "%s", str) ;
48                  g_free (str) ;
49                  str = NULL ;
50          }
51 @@ -2737,7 +2737,7 @@ cr_statement_dump_import_rule (CRStateme
52  
53          str = cr_statement_import_rule_to_string (a_this, a_indent) ;
54          if (str) {
55 -                fprintf (a_fp, str) ;
56 +                fprintf (a_fp, "%s", str) ;
57                  g_free (str) ;
58                  str = NULL ;
59          }