[packages/goom-2k4] - added format patch to fix build with -Werror=format-security

qboosh qboosh at pld-linux.org
Thu Apr 11 20:50:00 CEST 2013


commit e9a12ddf7937b8d4f85650ba234a43ea7f23143d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 11 20:50:10 2013 +0200

    - added format patch to fix build with -Werror=format-security

 goom-2k4-format.patch | 20 ++++++++++++++++++++
 goom-2k4.spec         |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/goom-2k4.spec b/goom-2k4.spec
index 110717b..7403aac 100644
--- a/goom-2k4.spec
+++ b/goom-2k4.spec
@@ -12,6 +12,7 @@ Group:		Applications/Graphics
 Source0:	http://downloads.sourceforge.net/goom/%{name}-%{version}-src.tar.gz
 # Source0-md5:	8100dd07e0c6784fdf079eeaa53a5c7f
 Patch0:		%{name}-link.patch
+Patch1:		%{name}-format.patch
 URL:		http://goom.sourceforge.net/
 BuildRequires:	SDL-devel >= 1.2.0
 BuildRequires:	autoconf
@@ -79,6 +80,7 @@ Wtyczka wizualizacji Goom 2 dla XMMS-a.
 %prep
 %setup -q -n goom2k4-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/goom-2k4-format.patch b/goom-2k4-format.patch
new file mode 100644
index 0000000..4e7d8c2
--- /dev/null
+++ b/goom-2k4-format.patch
@@ -0,0 +1,20 @@
+--- goom2k4-0/src/goom_core.c.orig	2005-02-07 14:46:41.000000000 +0100
++++ goom2k4-0/src/goom_core.c	2013-04-11 20:17:45.736682057 +0200
+@@ -834,7 +834,7 @@
+     
+     if (message) {
+         int i=1,j=0;
+-        sprintf (goomInfo->update_message.message, message);
++        strcpy (goomInfo->update_message.message, message);
+         for (j=0;goomInfo->update_message.message[j];j++)
+             if (goomInfo->update_message.message[j]=='\n')
+                 i++;
+@@ -849,7 +849,7 @@
+         int pos;
+         float ecart;
+         message = msg;
+-        sprintf (msg, goomInfo->update_message.message);
++        strcpy (msg, goomInfo->update_message.message);
+         
+         while (!fin) {
+             while (1) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/goom-2k4.git/commitdiff/e9a12ddf7937b8d4f85650ba234a43ea7f23143d



More information about the pld-cvs-commit mailing list