[Zlib-devel] Clarify documentation of gzerror()

Mark Brown broonie at sirena.org.uk
Sat Feb 18 03:50:12 EST 2006


This patch against zlib-1.2.3 adds a note to the documentation of
gzerror() in zlib.h specifying the rules for access to the error
text returned:

--- zlib-1.2.3/zlib.h.orig	2006-02-18 08:37:38.000000000 +0000
+++ zlib-1.2.3/zlib.h	2006-02-18 08:40:28.000000000 +0000
@@ -1240,6 +1240,9 @@
    error occurred in the file system and not in the compression library,
    errnum is set to Z_ERRNO and the application may consult errno
    to get the exact error code.
+
+   The application must not modify the returned string and future calls to
+   this function may invalidate the returned string.
 */
 
 ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20060218/15966ab9/attachment.sig>


More information about the Zlib-devel mailing list