mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- fix build for png-1.4.1
This commit is contained in:
parent
9121917612
commit
afcd0469e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251734
1 changed files with 23 additions and 0 deletions
23
mail/spamprobe/files/patch-src_parser_PngParser.cc
Normal file
23
mail/spamprobe/files/patch-src_parser_PngParser.cc
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- src/parser/PngParser.cc.orig 2006-11-17 08:11:10.000000000 +0100
|
||||
+++ src/parser/PngParser.cc 2010-03-29 17:15:51.000000000 +0200
|
||||
@@ -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, NULL, NULL);
|
||||
|
||||
string base_token("image_0");
|
||||
sendToken(base_token + "_height_" + num_to_string((int)width));
|
Loading…
Add table
Reference in a new issue