updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / leocad-svn / libpng12-to-libpng14-1.patch
blob80c5d695892bb6833e9ad817536ca4332c7251ee
1 *** src/trunk/common/im_png.cpp 2010-05-20 12:04:49.878773535 +0200
2 --- im_png.cpp 2010-05-20 12:05:09.295436080 +0200
3 ***************
4 *** 47,53 ****
5 FreeData ();
7 file.Read (sig, 8);
8 ! if (!png_check_sig(sig, 8))
9 return false; // bad signature
11 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
12 --- 47,53 ----
13 FreeData ();
15 file.Read (sig, 8);
16 ! if (!(png_sig_cmp(sig, 0, 8) == 0))
17 return false; // bad signature
19 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);