[packages/flowd] - fix format string error

baggins baggins at pld-linux.org
Sun Jun 9 20:10:54 CEST 2013


commit 7174eac47a19ff85769e07ca34475bdc784a7a12
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jun 9 20:10:44 2013 +0200

    - fix format string error

 flowd.spec         |  2 ++
 format-error.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/flowd.spec b/flowd.spec
index b8dd0da..2365ca2 100644
--- a/flowd.spec
+++ b/flowd.spec
@@ -13,6 +13,7 @@ Group:		Applications/Networking
 Source0:	http://www.mindrot.org/files/flowd/%{name}-%{version}.tar.gz
 # Source0-md5:	a3d0512b5e6d9c7d9e749d9894376ea4
 Patch0:		%{name}-username.patch
+Patch1:		format-error.patch
 URL:		http://www.mindrot.org/flowd.html
 BuildRequires:	byacc
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -103,6 +104,7 @@ sieciowych flowd.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure
diff --git a/format-error.patch b/format-error.patch
new file mode 100644
index 0000000..21ead18
--- /dev/null
+++ b/format-error.patch
@@ -0,0 +1,11 @@
+--- flowd-0.9.1/Flowd-perl/Flowd.xs~	2005-08-21 13:17:02.000000000 +0200
++++ flowd-0.9.1/Flowd-perl/Flowd.xs	2013-06-09 20:10:09.721811208 +0200
+@@ -70,7 +70,7 @@
+ 		buf = (char *)SvPV(ST(0), len);
+ 		r = store_flow_deserialise(buf, len, &flow, ebuf, sizeof(ebuf));
+ 		if (r != STORE_ERR_OK)
+-			croak(ebuf);
++			croak("%s", ebuf);
+ 
+ 		fields = ntohl(flow.hdr.fields);
+ 		
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/flowd.git/commitdiff/7174eac47a19ff85769e07ca34475bdc784a7a12



More information about the pld-cvs-commit mailing list