git: f61b4dc8d512 - main - graphics/xpaint: Fix build in current (llvm15)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 May 2023 16:32:12 UTC
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=f61b4dc8d512f35101ee052f1193a7a30fba66cc commit f61b4dc8d512f35101ee052f1193a7a30fba66cc Author: Helge Oldach <freebsd@oldach.net> AuthorDate: 2023-05-08 14:02:01 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2023-05-08 16:27:19 +0000 graphics/xpaint: Fix build in current (llvm15) PR: 270930 Reported by: freebsd@oldach.net (maintainer) --- graphics/xpaint/files/patch-rw_readWriteJP2K.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphics/xpaint/files/patch-rw_readWriteJP2K.c b/graphics/xpaint/files/patch-rw_readWriteJP2K.c new file mode 100644 index 000000000000..9f12f3a78759 --- /dev/null +++ b/graphics/xpaint/files/patch-rw_readWriteJP2K.c @@ -0,0 +1,11 @@ +--- rw/readWriteJP2K.c.orig 2023-05-08 13:59:30 UTC ++++ rw/readWriteJP2K.c +@@ -69,7 +69,7 @@ ReadJP2K(char *file_name) + int i, j, k, l, w, h, w0, nc, step, delta, shift, bpp; + int *src, codec = CODEC_JP2; + +- if ((fp = fopen(file_name, "rb")) == NULL) return (-1); ++ if ((fp = fopen(file_name, "rb")) == NULL) return (Image *)(-1); + + /* Read in the entire file */ + fseek(fp, 0, SEEK_END);