ports/graphics/libmng/files/patch-chunk_descr.c
Mikhail Teterin daa103d826 graphics/libmng: upgrade from 1.0.10 to 2.0.3
Despite the seemingly large version jump, the sole change is
the compatibility with lcms-2.x.

I'm now also adding fixes for some compiler-warnings raised
by the modern clang. These suggest, certain parts of the code
aren't even really excercised.

Neither API nor ABI are changing, so no shared library
version-bump.
2024-01-12 16:53:24 -05:00

9 lines
546 B
C

--- libmng_chunk_descr.c 2012-07-29 15:26:34.000000000 -0400
+++ libmng_chunk_descr.c 2024-01-08 14:32:15.916979000 -0500
@@ -2751,5 +2751,5 @@
mng_get_chunkheader (MNG_UINT_sRGB, &chunk_srgb);
/* pretend it's an sRGB chunk then ! */
- iRetcode = mng_read_general (pData, &chunk_srgb, 1, (mng_ptr)"0", &pDummy);
+ iRetcode = mng_read_general (pData, &chunk_srgb, 1, (mng_ptr)"0", (void **)&pDummy);
if (iRetcode) /* on error bail out */
return iRetcode;