From 9317e4b89644635a9ce309c4626d917d886ae20b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 12:41:41 +0100 Subject: Merging upstream version 1.15~pre1. Signed-off-by: Daniel Baumann --- testsuite/unzcrash.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testsuite/unzcrash.cc') diff --git a/testsuite/unzcrash.cc b/testsuite/unzcrash.cc index abf61bb..24defa6 100644 --- a/testsuite/unzcrash.cc +++ b/testsuite/unzcrash.cc @@ -58,11 +58,11 @@ void show_help() " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" " -b, --bits= test N-bit errors instead of full byte\n" - " -p, --position= first byte position to test\n" + " -p, --position= first byte position to test [default 0]\n" " -q, --quiet suppress all messages\n" - " -s, --size= number of byte positions to test\n" + " -s, --size= number of byte positions to test [all]\n" " -v, --verbose be verbose (a 2nd -v gives more)\n" - "Examples of : 1 1,2,3 1-4 1,3-5,8\n" + "Examples of : 1 1,2,3 1-4 1,3-5,8 1-3,5-8\n" "\nReport bugs to lzip-bug@nongnu.org\n" "Lzip home page: http://www.nongnu.org/lzip/lzip.html\n" ); } @@ -109,8 +109,8 @@ unsigned long long getnum( const char * const ptr, const unsigned long long llimit, const unsigned long long ulimit ) { - errno = 0; char * tail; + errno = 0; unsigned long long result = strtoull( ptr, &tail, 0 ); if( tail == ptr ) { @@ -172,7 +172,7 @@ public: bool includes( const int i ) const { return ( i >= 1 && i <= 8 && data[i-1] ); } - // Recognized formats: 1 1,2,3 1-4 1,3-5,8 + // Recognized formats: 1 1,2,3 1-4 1,3-5,8 1-3,5-8 bool parse( const char * p ) { for( int i = 0; i < 8; ++i ) data[i] = false; -- cgit v1.2.3