]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Note behavior of uncompress() to provide as much data as it can.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 23 Oct 2011 19:25:55 +0000 (12:25 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 23 Oct 2011 19:25:55 +0000 (12:25 -0700)
zlib.h

diff --git a/zlib.h b/zlib.h
index d85d7c29ecea6c215df11b5641c9dc07835b6bec..6728d897559f4d2f782c6c77d6506496fe18ff97 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1174,7 +1174,9 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest,   uLongf *destLen,
 
      uncompress returns Z_OK if success, Z_MEM_ERROR if there was not
    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 or incomplete.
+   buffer, or Z_DATA_ERROR if the input data was corrupted or incomplete.  In
+   the case where there is not enough room, uncompress() will fill the output
+   buffer with the uncompressed data up to that point.
 */
 
                         /* gzip file access functions */