updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / spamprobe / spamprobe-png.patch
bloba3cba4266ed9692aba935a136e4aebf5107519c4
1 --- src/parser/PngParser.cc
2 +++ src/parser/PngParser.cc
3 @@ -53,9 +53,9 @@ PngParser::~PngParser()
5 if (m_initialized) {
6 if (m_infoPtr) {
7 - png_destroy_read_struct(&m_pngPtr, &m_infoPtr, png_infopp_NULL);
8 + png_destroy_read_struct(&m_pngPtr, &m_infoPtr, NULL);
9 } else {
10 - png_destroy_read_struct(&m_pngPtr, png_infopp_NULL, png_infopp_NULL);
11 + png_destroy_read_struct(&m_pngPtr, NULL, NULL);
15 @@ -104,7 +104,7 @@ void PngParser::tokenizeImage()
16 int bit_depth, color_type, interlace_type;
18 png_get_IHDR(m_pngPtr, m_infoPtr, &width, &height, &bit_depth, &color_type,
19 - &interlace_type, int_p_NULL, int_p_NULL);
20 + &interlace_type, NULL, NULL);
22 string base_token("image_0");
23 sendToken(base_token + "_height_" + num_to_string((int)width));