You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
diff -ur pngtools-0.4.orig/Makefile.am pngtools-0.4/Makefile.am
|
|
--- pngtools-0.4.orig/Makefile.am 2008-11-27 01:14:17.000000000 +0200
|
|
+++ pngtools-0.4/Makefile.am 2010-03-09 00:51:10.000000000 +0200
|
|
@@ -4,3 +4,6 @@
|
|
pngcp_SOURCES = pngcp.c pngread.c pngwrite.c inflateraster.c
|
|
pngchunkdesc_SOURCES = pngchunkdesc.c
|
|
pngchunks_SOURCES = pngchunks.c
|
|
+
|
|
+pnginfo_LDADD = -lpng
|
|
+pngcp_LDADD = -lpng
|
|
diff -ur pngtools-0.4.orig/pnginfo.c pngtools-0.4/pnginfo.c
|
|
--- pngtools-0.4.orig/pnginfo.c 2008-11-27 01:14:17.000000000 +0200
|
|
+++ pngtools-0.4/pnginfo.c 2010-03-09 00:42:58.000000000 +0200
|
|
@@ -152,7 +152,7 @@
|
|
|
|
// Check that it really is a PNG file
|
|
fread (sig, 1, 8, image);
|
|
- if (!png_check_sig (sig, 8))
|
|
+ if (!png_sig_cmp(sig, 0, 8) == 0)
|
|
{
|
|
printf (" This file is not a valid PNG file\n");
|
|
fclose (image);
|
|
diff -ur pngtools-0.4.orig/pngread.c pngtools-0.4/pngread.c
|
|
--- pngtools-0.4.orig/pngread.c 2008-11-27 01:14:17.000000000 +0200
|
|
+++ pngtools-0.4/pngread.c 2010-03-09 00:43:27.000000000 +0200
|
|
@@ -26,7 +26,7 @@
|
|
|
|
// Check that it really is a PNG file
|
|
fread(sig, 1, 8, image);
|
|
- if(!png_check_sig(sig, 8)){
|
|
+ if(!png_sig_cmp(sig, 0, 8) == 0){
|
|
fprintf(stderr, "This file is not a valid PNG file\n");
|
|
goto error;
|
|
}
|