You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-filter/spamprobe/files/spamprobe-1.4d-libpng14.patch

24 lines
790 B

--- a/src/parser/PngParser.cc
+++ b/src/parser/PngParser.cc
@@ -53,9 +53,9 @@
{
if (m_initialized) {
if (m_infoPtr) {
- png_destroy_read_struct(&m_pngPtr, &m_infoPtr, png_infopp_NULL);
+ png_destroy_read_struct(&m_pngPtr, &m_infoPtr, NULL);
} else {
- png_destroy_read_struct(&m_pngPtr, png_infopp_NULL, png_infopp_NULL);
+ png_destroy_read_struct(&m_pngPtr, NULL, NULL);
}
}
}
@@ -104,7 +104,7 @@
int bit_depth, color_type, interlace_type;
png_get_IHDR(m_pngPtr, m_infoPtr, &width, &height, &bit_depth, &color_type,
- &interlace_type, int_p_NULL, int_p_NULL);
+ &interlace_type, (int *) NULL, (int *) NULL);
string base_token("image_0");
sendToken(base_token + "_height_" + num_to_string((int)width));