Update PNG to 1.2.6 + wutil patch.

Update ZLIB to 1.2.1.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2004-09-08 16:04:43 +00:00
parent 53d7e32ff3
commit 88ff012c44
64 changed files with 8090 additions and 4425 deletions

View File

@@ -1,10 +1,11 @@
/* uncompr.c -- decompress a memory buffer
* Copyright (C) 1995-2002 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
* Copyright (C) 1995-2003 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: uncompr.c,v 1.1.2.1 2004/07/05 14:12:38 easysw Exp $ */
/* @(#) $Id: uncompr.c,v 1.1.2.2 2004/09/08 16:04:43 easysw Exp $ */
#define ZLIB_INTERNAL
#include "zlib.h"
/* ===========================================================================
@@ -49,7 +50,9 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen)
err = inflate(&stream, Z_FINISH);
if (err != Z_STREAM_END) {
inflateEnd(&stream);
return err == Z_OK ? Z_BUF_ERROR : err;
if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
return Z_DATA_ERROR;
return err;
}
*destLen = stream.total_out;