]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
minigzip: add support for deflate_stored.
authorMika Lindqvist <postmaster@raasu.org>
Fri, 17 Feb 2017 13:08:47 +0000 (15:08 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 23 Feb 2017 08:08:05 +0000 (09:08 +0100)
test/minigzip.c

index 286861e2c7165e8f0b51197090f8cc6d8f66c7cd..600619fcb0f7d09ab8e71ce3c53f427da9a9a786 100644 (file)
@@ -435,7 +435,7 @@ void file_uncompress(char  *file)
  *   -f : compress with Z_FILTERED
  *   -h : compress with Z_HUFFMAN_ONLY
  *   -r : compress with Z_RLE
- *   -1 to -9 : compression level
+ *   -0 to -9 : compression level
  */
 
 int main(int argc, char *argv[])
@@ -471,7 +471,7 @@ int main(int argc, char *argv[])
         outmode[3] = 'h';
       else if (strcmp(*argv, "-r") == 0)
         outmode[3] = 'R';
-      else if ((*argv)[0] == '-' && (*argv)[1] >= '1' && (*argv)[1] <= '9' &&
+      else if ((*argv)[0] == '-' && (*argv)[1] >= '0' && (*argv)[1] <= '9' &&
                (*argv)[2] == 0)
         outmode[2] = (*argv)[1];
       else