Hi, lziprecover 1.14~rc1 fails to build from source with gcc and -Werror=format-security, the attached patch fixes it.
Regards, Daniel -- Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern Email: [email protected] Internet: http://people.progress-technologies.net/~daniel.baumann/
Author: Daniel Baumann <[email protected]> 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; }
_______________________________________________ Lzip-bug mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lzip-bug
