commit 8c80a86efee212bcd5a89a39a9dfa7b126ee56bd
Author: Jakub Bogusz <[email protected]>
Date:   Fri Feb 22 16:28:54 2013 +0100

    - added format patch (fixes build with -Werror=format-security)

 libbs2b-format.patch | 12 ++++++++++++
 libbs2b.spec         |  2 ++
 2 files changed, 14 insertions(+)
---
diff --git a/libbs2b.spec b/libbs2b.spec
index 812fbe3..81b4441 100644
--- a/libbs2b.spec
+++ b/libbs2b.spec
@@ -7,6 +7,7 @@ License:        MIT
 Group:         Libraries
 Source0:       
http://downloads.sourceforge.net/bs2b/%{name}-%{version}.tar.lzma
 # Source0-md5: 00d32ffa6461dde6a632c846da3e0a13
+Patch0:                %{name}-format.patch
 URL:           http://bs2b.sourceforge.net/
 BuildRequires: libsndfile-devel
 BuildRequires: libstdc++-devel
@@ -50,6 +51,7 @@ Statyczna biblioteka bs2b.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
diff --git a/libbs2b-format.patch b/libbs2b-format.patch
new file mode 100644
index 0000000..63f1c36
--- /dev/null
+++ b/libbs2b-format.patch
@@ -0,0 +1,12 @@
+--- libbs2b-3.1.0/src/bs2bconvert.c.orig       2009-06-04 20:01:15.000000000 
+0200
++++ libbs2b-3.1.0/src/bs2bconvert.c    2013-02-22 16:21:19.128476311 +0100
+@@ -152,8 +152,7 @@
+       
+       if( ( infile = sf_open( infilename, SFM_READ, &sfinfo ) ) == NULL )
+       {
+-              printf( "Not able to open input file %s.\n", infilename );
+-              printf( sf_strerror( NULL ) );
++              printf( "Not able to open input file %s.\n%s", infilename, 
sf_strerror( NULL ) );
+               return 1;
+       }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libbs2b.git/commitdiff/8c80a86efee212bcd5a89a39a9dfa7b126ee56bd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to