summaryrefslogtreecommitdiffstats
path: root/debian/patches/0002-format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0002-format-security.patch')
-rw-r--r--debian/patches/0002-format-security.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/debian/patches/0002-format-security.patch b/debian/patches/0002-format-security.patch
deleted file mode 100644
index ac9a3c9..0000000
--- a/debian/patches/0002-format-security.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Author: Daniel Baumann <mail@daniel-baumann.ch>
-Description: Using string literal to fix FTBFS with -Werror=format-security.
-
-diff -Naurp lziprecover.orig/main.cc lziprecover/main.cc
---- lziprecover.orig/main.cc
-+++ lziprecover/main.cc
-@@ -418,7 +418,7 @@ int decompress( const int infd, const Pr
- }
- retval = 2; break;
- }
-- if( verbosity >= 2 ) { std::fprintf( stderr, ok_msg ); pp.reset(); }
-+ if( verbosity >= 2 ) { std::fprintf( stderr, "%s", ok_msg ); pp.reset(); }
- }
- }
- catch( std::bad_alloc )
-@@ -427,7 +427,7 @@ int decompress( const int infd, const Pr
- retval = 1;
- }
- catch( Error e ) { pp(); show_error( e.msg, errno ); retval = 1; }
-- if( verbosity == 1 && retval == 0 ) std::fprintf( stderr, ok_msg );
-+ if( verbosity == 1 && retval == 0 ) std::fprintf( stderr, "%s", ok_msg );
- return retval;
- }
-