diff options
author | Werner Koch <[email protected]> | 1999-01-13 13:12:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-01-13 13:12:50 +0000 |
commit | e99e43cd531c4ba26bb1b2fbc0e356f95126ae24 (patch) | |
tree | f591efcd4d250d73c4b265e29a1e1fa44b889017 /zlib/uncompr.c | |
parent | See ChangeLog: Wed Jan 13 12:49:36 CET 1999 Werner Koch (diff) | |
download | gnupg-e99e43cd531c4ba26bb1b2fbc0e356f95126ae24.tar.gz gnupg-e99e43cd531c4ba26bb1b2fbc0e356f95126ae24.zip |
See ChangeLog: Wed Jan 13 14:10:15 CET 1999 Werner Koch
Diffstat (limited to 'zlib/uncompr.c')
-rw-r--r-- | zlib/uncompr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zlib/uncompr.c b/zlib/uncompr.c index 20fd346c1..d10332137 100644 --- a/zlib/uncompr.c +++ b/zlib/uncompr.c @@ -1,9 +1,9 @@ /* uncompr.c -- decompress a memory buffer - * Copyright (C) 1995-1996 Jean-loup Gailly. + * Copyright (C) 1995-1998 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ -/* $Id$ */ +/* @(#) $Id$ */ #include "zlib.h" @@ -22,7 +22,7 @@ enough memory, Z_BUF_ERROR if there was not enough room in the output buffer, or Z_DATA_ERROR if the input data was corrupted. */ -int uncompress (dest, destLen, source, sourceLen) +int ZEXPORT uncompress (dest, destLen, source, sourceLen) Bytef *dest; uLongf *destLen; const Bytef *source; @@ -49,7 +49,7 @@ int uncompress (dest, destLen, source, sourceLen) err = inflate(&stream, Z_FINISH); if (err != Z_STREAM_END) { inflateEnd(&stream); - return err; + return err == Z_OK ? Z_BUF_ERROR : err; } *destLen = stream.total_out; |