1 diff -Naur libsvg-0.1.4.orig//src/svg_image.c libsvg-0.1.4.new/src/svg_image.c
2 --- libsvg-0.1.4.orig//src/svg_image.c 2010-03-26 20:10:48.000000000 +0100
3 +++ libsvg-0.1.4.new/src/svg_image.c 2010-03-26 20:14:10.000000000 +0100
5 return SVG_STATUS_FILE_NOT_FOUND;
7 sig_bytes = fread (png_sig, 1, PNG_SIG_SIZE, file);
8 - if (png_check_sig (png_sig, sig_bytes) == 0) {
9 + if (!png_sig_cmp (png_sig, 0, sig_bytes) == 0) {
11 return SVGINT_STATUS_IMAGE_NOT_PNG;
15 /* expand gray bit depth if needed */
16 if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8)
17 - png_set_gray_1_2_4_to_8 (png);
18 + png_set_expand_gray_1_2_4_to_8 (png);
20 /* transform transparency to alpha */
21 if (png_get_valid(png, info, PNG_INFO_tRNS))