diff options
Diffstat (limited to 'gzio.c')
-rw-r--r-- | gzio.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -220,7 +220,7 @@ gzFile ZEXPORT gzdopen (fd, mode) | |||
220 | int fd; | 220 | int fd; |
221 | const char *mode; | 221 | const char *mode; |
222 | { | 222 | { |
223 | char name[20]; | 223 | char name[46]; /* allow for up to 128-bit integers */ |
224 | 224 | ||
225 | if (fd < 0) return (gzFile)Z_NULL; | 225 | if (fd < 0) return (gzFile)Z_NULL; |
226 | sprintf(name, "<fd:%d>", fd); /* for debugging */ | 226 | sprintf(name, "<fd:%d>", fd); /* for debugging */ |
@@ -959,6 +959,12 @@ int ZEXPORT gzclose (file) | |||
959 | return destroy((gz_stream*)file); | 959 | return destroy((gz_stream*)file); |
960 | } | 960 | } |
961 | 961 | ||
962 | #ifdef STDC | ||
963 | # define zstrerror(errnum) strerror(errnum) | ||
964 | #else | ||
965 | # define zstrerror(errnum) "" | ||
966 | #endif | ||
967 | |||
962 | /* =========================================================================== | 968 | /* =========================================================================== |
963 | Returns the error message for the last error which occured on the | 969 | Returns the error message for the last error which occured on the |
964 | given compressed file. errnum is set to zlib error number. If an | 970 | given compressed file. errnum is set to zlib error number. If an |