diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 18:42:28 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 18:42:28 +0000 |
commit | 0f1a19d23ebcaa476a8d274e873fff6fdad003c5 (patch) | |
tree | ec778bd79461207cd79f692dd4b71eefc4f30e05 | |
parent | 32f526fc2046a544569fce05fc957eae48bfaaf6 (diff) |
Notes
-rw-r--r-- | graphics/libsvg/files/patch-svg_image.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/libsvg/files/patch-svg_image.c b/graphics/libsvg/files/patch-svg_image.c new file mode 100644 index 000000000000..8b6a66a1ee90 --- /dev/null +++ b/graphics/libsvg/files/patch-svg_image.c @@ -0,0 +1,20 @@ +--- src/svg_image.c.orig 2005-04-11 17:45:32.000000000 +0200 ++++ src/svg_image.c 2010-03-29 20:41:38.000000000 +0200 +@@ -228,7 +228,7 @@ + return SVG_STATUS_FILE_NOT_FOUND; + + sig_bytes = fread (png_sig, 1, PNG_SIG_SIZE, file); +- if (png_check_sig (png_sig, sig_bytes) == 0) { ++ if (!png_sig_cmp (png_sig, 0, sig_bytes) == 0) { + fclose (file); + return SVGINT_STATUS_IMAGE_NOT_PNG; + } +@@ -271,7 +271,7 @@ + + /* expand gray bit depth if needed */ + if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8) +- png_set_gray_1_2_4_to_8 (png); ++ png_set_expand_gray_1_2_4_to_8 (png); + + /* transform transparency to alpha */ + if (png_get_valid(png, info, PNG_INFO_tRNS)) |