[packages/splashy] - fix -Wformat-security errors - rel 7
baggins
baggins at pld-linux.org
Sat Oct 6 21:49:56 CEST 2012
commit a07425d7322719c4e21ac0c53bcedaf8b6e0630b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Oct 6 21:49:39 2012 +0200
- fix -Wformat-security errors
- rel 7
format-security.patch | 40 ++++++++++++++++++++++++++++++++++++++++
splashy.spec | 4 +++-
2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/splashy.spec b/splashy.spec
index 46d06a0..5d1af4f 100644
--- a/splashy.spec
+++ b/splashy.spec
@@ -5,11 +5,12 @@ Summary: Next generation boot splashing system
Summary(pl.UTF-8): System ekranu startowego nowej generacji
Name: splashy
Version: 0.3.13
-Release: 6
+Release: 7
License: GPL v2
Group: Applications/System
Source0: http://alioth.debian.org/frs/download.php/2691/%{name}_%{version}.tar.gz
# Source0-md5: 03b7ee4f31c56ee61463772f74bad8a0
+Patch0: format-security.patch
URL: http://splashy.alioth.debian.org/
BuildRequires: DirectFB-devel >= 0.9.22
BuildRequires: autoconf >= 2.59
@@ -150,6 +151,7 @@ Skrypty dla initramfs-tools ze wsparciem dla systemu splashy.
%prep
%setup -q
+%patch0 -p1
sed -i -e 's#-Werror##g' configure.ac
%build
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..52dbf7e
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,40 @@
+--- splashy-0.3.13/src/splashy_config-functions.c.orig 2012-10-06 21:46:45.359269249 +0200
++++ splashy-0.3.13/src/splashy_config-functions.c 2012-10-06 21:47:30.952600974 +0200
+@@ -79,7 +79,7 @@
+ g_string_append (new_theme, theme_name);
+
+ g_print (_(">Set theme as: "));
+- g_print (theme_name);
++ g_print ("%s", theme_name);
+ /*
+ ** Check if the theme exist
+ */
+@@ -292,7 +292,7 @@
+ else
+ {
+ PRINT_FAIL;
+- g_print (msg_invalid_format);
++ g_print ("%s", msg_invalid_format);
+ }
+
+ }
+@@ -760,7 +760,7 @@
+ SPL_THEME_CONFIG_FILE_NAME,
+ NULL);
+
+- g_print (NewTheme->name);
++ g_print ("%s", NewTheme->name);
+
+ gint ret = RETURN_ERROR;
+ if (gen_theme_xml (theme_file_path, NewTheme) == 0)
+--- splashy-0.3.13/src/splashy_update.c~ 2008-12-24 17:14:55.000000000 +0100
++++ splashy-0.3.13/src/splashy_update.c 2012-10-06 21:48:00.789266587 +0200
+@@ -91,7 +91,7 @@
+ if (read(sock, &buf, buf_len) < 0)
+ ERROR_PRINT("%s",strerror(errno));
+
+- printf(buf);
++ printf("%s", buf);
+ }
+
+ close (sock);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/splashy.git/commitdiff/a07425d7322719c4e21ac0c53bcedaf8b6e0630b
More information about the pld-cvs-commit
mailing list