diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:52:32 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:52:32 +0000 |
commit | de06b1d957bdad592fff87e845d27d40cfcbd694 (patch) | |
tree | 38d1a64462988c92f82b12d2ea3dca6864006003 /unzcrash.cc | |
parent | Adding upstream version 1.17. (diff) | |
download | lziprecover-de06b1d957bdad592fff87e845d27d40cfcbd694.tar.xz lziprecover-de06b1d957bdad592fff87e845d27d40cfcbd694.zip |
Adding upstream version 1.18~pre1.upstream/1.18_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'unzcrash.cc')
-rw-r--r-- | unzcrash.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unzcrash.cc b/unzcrash.cc index 49f67aa..50262b9 100644 --- a/unzcrash.cc +++ b/unzcrash.cc @@ -96,7 +96,7 @@ void show_error( const char * const msg, const int errcode = 0, std::fprintf( stderr, "%s: %s", program_name, msg ); if( errcode > 0 ) std::fprintf( stderr, ": %s", std::strerror( errcode ) ); - std::fprintf( stderr, "\n" ); + std::fputc( '\n', stderr ); } if( help ) std::fprintf( stderr, "Try '%s --help' for more information.\n", @@ -293,7 +293,7 @@ int main( const int argc, const char * const argv[] ) if( !f ) { if( verbosity >= 0 ) - std::fprintf( stderr, "Can't open file '%s' for reading\n", + std::fprintf( stderr, "Can't open file '%s' for reading.\n", parser.argument( argind + 1 ).c_str() ); return 1; } @@ -316,7 +316,7 @@ int main( const int argc, const char * const argv[] ) if( wr != size || pclose( f ) != 0 ) { if( verbosity >= 0 ) - std::fprintf( stderr, "Could not run '%s' : %s.\n", + std::fprintf( stderr, "Could not run '%s': %s\n", parser.argument( argind ).c_str(), std::strerror( errno ) ); return 1; } |