summaryrefslogtreecommitdiff
path: root/minigzip.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:43 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:43 -0700
commit6b8233bfe00e79134cb1b84fc49d4f750a797f79 (patch)
treeca2b03b0169568681dc3d9c823e9f0bc4417d6b5 /minigzip.c
parent0484693e1723bbab791c56f95597bd7dbe867d03 (diff)
downloadzlib-1.2.2.3.tar.gz
zlib-1.2.2.3.tar.bz2
zlib-1.2.2.3.zip
zlib 1.2.2.3v1.2.2.3
Diffstat (limited to '')
-rw-r--r--minigzip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/minigzip.c b/minigzip.c
index 4ba5e50..4524b96 100644
--- a/minigzip.c
+++ b/minigzip.c
@@ -1,5 +1,5 @@
1/* minigzip.c -- simulate gzip using the zlib compression library 1/* minigzip.c -- simulate gzip using the zlib compression library
2 * Copyright (C) 1995-2004 Jean-loup Gailly. 2 * Copyright (C) 1995-2005 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -295,6 +295,8 @@ int main(argc, argv)
295 break; 295 break;
296 argc--, argv++; 296 argc--, argv++;
297 } 297 }
298 if (outmode[3] == ' ')
299 outmode[3] = 0;
298 if (argc == 0) { 300 if (argc == 0) {
299 SET_BINARY_MODE(stdin); 301 SET_BINARY_MODE(stdin);
300 SET_BINARY_MODE(stdout); 302 SET_BINARY_MODE(stdout);