mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Moved declarations of umsg[] inside proper #ifdef blocks in pngrutil.c
This commit is contained in:
parent
2c55e3e917
commit
ac4942e26b
5
ANNOUNCE
5
ANNOUNCE
@ -1,5 +1,5 @@
|
||||
|
||||
Libpng 1.4.2rc06 - April 29, 2010
|
||||
Libpng 1.4.2rc06 - May 3, 2010
|
||||
|
||||
This is not intended to be a public release. It will be replaced
|
||||
within a few weeks by a public version or by another test version.
|
||||
@ -60,6 +60,9 @@ version 1.4.2rc05 [April 29, 2010]
|
||||
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
|
||||
but was left defined in pngtrans.c
|
||||
|
||||
version 1.4.2rc06 [May 3, 2010]
|
||||
Moved declarations of umsg[] inside the proper #ifdef blocks in pngrutil.c
|
||||
|
||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement).
|
||||
|
||||
3
CHANGES
3
CHANGES
@ -2571,6 +2571,9 @@ version 1.4.2rc05 [April 29, 2010]
|
||||
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
|
||||
but was left defined in pngtrans.c
|
||||
|
||||
version 1.4.2rc06 [May 3, 2010]
|
||||
Moved declarations of umsg[] inside the proper #ifdef blocks in pngrutil.c
|
||||
|
||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement).
|
||||
|
||||
@ -254,12 +254,14 @@ png_inflate(png_structp png_ptr, const png_byte *data, png_size_t size,
|
||||
* buffer if available.
|
||||
*/
|
||||
{
|
||||
char *msg, umsg[52];
|
||||
char *msg;
|
||||
if (png_ptr->zstream.msg != 0)
|
||||
msg = png_ptr->zstream.msg;
|
||||
else
|
||||
{
|
||||
#ifdef PNG_STDIO_SUPPORTED
|
||||
char umsg[52];
|
||||
|
||||
switch (ret)
|
||||
{
|
||||
case Z_BUF_ERROR:
|
||||
@ -372,10 +374,11 @@ png_decompress_chunk(png_structp png_ptr, int comp_type,
|
||||
|
||||
else /* if (comp_type != PNG_COMPRESSION_TYPE_BASE) */
|
||||
{
|
||||
#ifdef PNG_STDIO_SUPPORTED
|
||||
char umsg[50];
|
||||
|
||||
#ifdef PNG_STDIO_SUPPORTED
|
||||
png_snprintf(umsg, sizeof umsg, "Unknown zTXt compression type %d", comp_type);
|
||||
png_snprintf(umsg, sizeof umsg, "Unknown zTXt compression type %d",
|
||||
comp_type);
|
||||
png_warning(png_ptr, umsg);
|
||||
#else
|
||||
png_warning(png_ptr, "Unknown zTXt compression type");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user