From 2e20a84ad820beb46ce780d25b9e1495bb794e85 Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 12 Jan 2024 14:14:21 +0100 Subject: [PATCH] C89 patch See https://github.com/macports/macports-ports/blob/master/archivers/lha/files/c89.patch --- src/bitio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitio.c b/src/bitio.c index ac4e61b..1c3e1de 100644 --- a/src/bitio.c +++ b/src/bitio.c @@ -19,8 +19,8 @@ fillbuf(n) /* Shift bitbuf n bits left, read n bits */ n -= bitcount; bitbuf = (bitbuf << bitcount) + (subbitbuf >> (CHAR_BIT - bitcount)); if (compsize != 0) { - compsize--; int c = getc(infile); + compsize--; if (c == EOF) { fatal_error("cannot read stream"); }