[cssed] Fix FTBFS with -Werror=format-security (#1037027, #1106096)
Yaakov Selkowitz
yselkowitz at fedoraproject.org
Mon Jul 7 23:45:22 UTC 2014
commit 31e3031fa8a5764815ffca00f767d69fa050cf98
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date: Thu Jun 26 18:59:53 2014 -0500
Fix FTBFS with -Werror=format-security (#1037027, #1106096)
cssed-0.4.0-format-security.patch | 47 +++++++++++++++++++++++++++++++++++++
cssed.spec | 10 ++++++-
2 files changed, 55 insertions(+), 2 deletions(-)
---
diff --git a/cssed-0.4.0-format-security.patch b/cssed-0.4.0-format-security.patch
new file mode 100644
index 0000000..b23b601
--- /dev/null
+++ b/cssed-0.4.0-format-security.patch
@@ -0,0 +1,47 @@
+--- a/libcroco/parser/cr-statement.c 2004-04-18 10:26:47.000000000 -0500
++++ b/libcroco/parser/cr-statement.c 2014-06-11 14:59:05.689850106 -0500
+@@ -2427,7 +2427,7 @@
+ g_return_if_fail (a_fp && a_this);
+ str = cr_statement_ruleset_to_string (a_this, a_indent);
+ if (str) {
+- fprintf (a_fp, str);
++ fprintf (a_fp, "%s", str);
+ g_free (str);
+ str = NULL;
+ }
+@@ -2472,7 +2472,7 @@
+ str = cr_statement_charset_to_string (a_this,
+ a_indent) ;
+ if (str) {
+- fprintf (a_fp, str) ;
++ fprintf (a_fp, "%s", str) ;
+ g_free (str) ;
+ str = NULL ;
+ }
+@@ -2496,7 +2496,7 @@
+
+ str = cr_statement_at_page_rule_to_string (a_this, a_indent) ;
+ if (str) {
+- fprintf (a_fp, str);
++ fprintf (a_fp, "%s", str);
+ g_free (str) ;
+ str = NULL ;
+ }
+@@ -2519,7 +2519,7 @@
+
+ str = cr_statement_media_rule_to_string (a_this, a_indent) ;
+ if (str) {
+- fprintf (a_fp, str) ;
++ fprintf (a_fp, "%s", str) ;
+ g_free (str) ;
+ str = NULL ;
+ }
+@@ -2542,7 +2542,7 @@
+
+ str = cr_statement_import_rule_to_string (a_this, a_indent) ;
+ if (str) {
+- fprintf (a_fp, str) ;
++ fprintf (a_fp, "%s", str) ;
+ g_free (str) ;
+ str = NULL ;
+ }
diff --git a/cssed.spec b/cssed.spec
index 6ccb165..95d5237 100644
--- a/cssed.spec
+++ b/cssed.spec
@@ -1,18 +1,19 @@
Name: cssed
Version: 0.4.0
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: CSS editor and validator
Group: Applications/Editors
License: GPLv2+
URL: http://cssed.sourceforge.net/
-Source0: http://dl.sourceforge.net/sourceforge/cssed/%{name}-%{version}.tar.gz
+Source0: http://downloads.sourceforge.net/cssed/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Patch0: cssed-0.4.0-headersfix.patch
Patch1: cssed-0.4.0-gcc44.patch
Patch2: cssed-0.4.0_cssdialogs-functions.patch
Patch3: cssed-0.4.0_pixmap.patch
Patch4: cssed-0.4.0-no-add-needed.patch
+Patch5: cssed-0.4.0-format-security.patch
BuildRequires: libxml2-devel,gettext,gtk2-devel,desktop-file-utils
@@ -44,6 +45,7 @@ Development files for cssed.
%patch2 -p0
%patch3 -p0
%patch4 -p1
+%patch5 -p1
%{__sed} -i 's/\r//' include/{SciLexer.h,Scintilla.h,ScintillaWidget.h}
%{__sed} -i 's/\r//' scintilla/License.txt
@@ -74,6 +76,10 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%{_includedir}/cssed
%changelog
+* Wed Jun 11 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 0.4.0-20
+- Fix FTBFS with -Werror=format-security (#1037027, #1106096)
+- Fix source URI
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.0-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list