Imported from libpng-1.4.0beta39.tar

This commit is contained in:
Glenn Randers-Pehrson
2008-11-23 06:48:29 -06:00
parent d0c40591f2
commit 398b5a31a7
62 changed files with 131 additions and 123 deletions

View File

@@ -1,7 +1,7 @@
/* pngerror.c - stub functions for i/o and memory allocation
*
* Last changed in libpng 1.4.0 [November 22, 2008]
* Last changed in libpng 1.4.0 [November 23, 2008]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -74,7 +74,7 @@ png_error(png_structp png_ptr, png_const_charp error_message)
msg[i] = error_message[i + 1];
/* In the example, "i" ends up being 5.
*/
msg[i -1] = '\0';
msg[i - 1] = '\0';
error_message = msg;
}
/* msg, and error_message, now contain "nnnn \0". */
@@ -137,9 +137,9 @@ png_warning(png_structp png_ptr, png_const_charp warning_message)
break;
}
}
if (png_ptr != NULL && png_ptr->warning_fn != NULL)
(*(png_ptr->warning_fn))(png_ptr, warning_message + offset);
}
if (png_ptr != NULL && png_ptr->warning_fn != NULL)
(*(png_ptr->warning_fn))(png_ptr, warning_message + offset);
else
png_default_warning(png_ptr, warning_message + offset);
}