diff options
Diffstat (limited to 'minigzip.c')
-rw-r--r-- | minigzip.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |