Copy from X11:Utilities/xli based on submit request 39242 from user prusnak OBS-URL: https://build.opensuse.org/request/show/39242 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xli?expand=0&rev=9
23 lines
517 B
Diff
23 lines
517 B
Diff
Index: png.c
|
|
===================================================================
|
|
--- png.c.orig
|
|
+++ png.c
|
|
@@ -11,7 +11,7 @@
|
|
|
|
#define TITLE_KEYWORD "Title"
|
|
|
|
-/* check to see if a file is a png file using png_check_sig() */
|
|
+/* check to see if a file is a png file using png_sig_cmp() */
|
|
static int check_png(char *file_name)
|
|
{
|
|
ZFILE *zfp;
|
|
@@ -27,7 +27,7 @@ static int check_png(char *file_name)
|
|
if (ret != 8)
|
|
return 0;
|
|
|
|
- ret = png_check_sig(buf, 8);
|
|
+ ret = !png_sig_cmp(buf, 0, 8);
|
|
|
|
return (ret);
|
|
}
|