diff options
Diffstat (limited to 'minigzip.c')
-rw-r--r-- | minigzip.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,6 +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-2002 Jean-loup Gailly. | 2 | * Copyright (C) 1995-2002 Jean-loup Gailly. |
3 | * Adapted for Z_RLE by Cosmin Truta, 2003. | ||
4 | * 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 |
5 | */ | 4 | */ |
6 | 5 | ||
@@ -60,7 +59,7 @@ | |||
60 | #ifndef GZ_SUFFIX | 59 | #ifndef GZ_SUFFIX |
61 | # define GZ_SUFFIX ".gz" | 60 | # define GZ_SUFFIX ".gz" |
62 | #endif | 61 | #endif |
63 | #define SUFFIX_LEN ((int)sizeof(GZ_SUFFIX)-1) | 62 | #define SUFFIX_LEN (sizeof(GZ_SUFFIX)-1) |
64 | 63 | ||
65 | #define BUFLEN 16384 | 64 | #define BUFLEN 16384 |
66 | #define MAX_NAME_LEN 1024 | 65 | #define MAX_NAME_LEN 1024 |
@@ -230,7 +229,7 @@ void file_uncompress(file) | |||
230 | char *infile, *outfile; | 229 | char *infile, *outfile; |
231 | FILE *out; | 230 | FILE *out; |
232 | gzFile in; | 231 | gzFile in; |
233 | int len = (int)strlen(file); | 232 | uInt len = (uInt)strlen(file); |
234 | 233 | ||
235 | strcpy(buf, file); | 234 | strcpy(buf, file); |
236 | 235 | ||