mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 06:37:15 +08:00
13 lines
595 B
Diff
13 lines
595 B
Diff
diff -Naur imlib2-1.4.2-orig/src/modules/loaders/loader_png.c imlib2-1.4.2/src/modules/loaders/loader_png.c
|
|
--- imlib2-1.4.2-orig/src/modules/loaders/loader_png.c 2010-01-19 03:37:21.000000000 -0500
|
|
+++ imlib2-1.4.2/src/modules/loaders/loader_png.c 2010-01-19 03:38:51.000000000 -0500
|
|
@@ -38,7 +38,7 @@
|
|
|
|
/* if we haven't read the header before, set the header data */
|
|
fread(buf, 1, PNG_BYTES_TO_CHECK, f);
|
|
- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
|
|
+ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
|
|
{
|
|
fclose(f);
|
|
return 0;
|