]> git.pld-linux.org Git - packages/flowd.git/commitdiff
- fix format string error
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 9 Jun 2013 18:10:44 +0000 (20:10 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 9 Jun 2013 18:10:44 +0000 (20:10 +0200)
flowd.spec
format-error.patch [new file with mode: 0644]

index b8dd0da62706d9941d79c59289a076215435d9f9..2365ca2a279415ce3f7ba4ca09a232ec07a73353 100644 (file)
@@ -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 (file)
index 0000000..21ead18
--- /dev/null
@@ -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);
+               
This page took 0.097068 seconds and 4 git commands to generate.