diff options
author | Geert Hendrickx | 2018-08-20 10:06:37 +0200 |
---|---|---|
committer | Geert Hendrickx | 2018-08-20 10:06:37 +0200 |
commit | 804cfdb42339cc68cbac9d1df8085dd74c1ab9b3 (patch) | |
tree | 1678b970fc452ab3ba82716d211850b09ecd2b52 /spamprobe-png.patch | |
download | aur-804cfdb42339cc68cbac9d1df8085dd74c1ab9b3.tar.gz |
Spamprobe, a bayesian spam filter
Diffstat (limited to 'spamprobe-png.patch')
-rw-r--r-- | spamprobe-png.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spamprobe-png.patch b/spamprobe-png.patch new file mode 100644 index 000000000000..a3cba4266ed9 --- /dev/null +++ b/spamprobe-png.patch @@ -0,0 +1,23 @@ +--- src/parser/PngParser.cc ++++ src/parser/PngParser.cc +@@ -53,9 +53,9 @@ PngParser::~PngParser() + { + 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 @@ void PngParser::tokenizeImage() + 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, NULL, NULL); + + string base_token("image_0"); + sendToken(base_token + "_height_" + num_to_string((int)width)); |