From 948b23ca1fabfe65ab36d866031422e92840282f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 1 Mar 2026 03:56:16 +0100 Subject: Fix mistakes, and finish ppmtolss16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- lss16toppm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lss16toppm.c') diff --git a/lss16toppm.c b/lss16toppm.c index 48c9b93..e44860c 100644 --- a/lss16toppm.c +++ b/lss16toppm.c @@ -82,7 +82,7 @@ main(int argc, char *argv[]) for (off = 0; off < n;) { state = liblss16_decode_to_colour_index(&decoder, &buf[off], n - off, &consumed, - pixels, sizeof(pixels) / sizeof(*pixels), &npixels, &error); + pixels, sizeof(pixels) / sizeof(*pixels), &npixels, &error); off += consumed; if (state == LIBLSS16_DECODE_ERROR) { goto error; @@ -123,7 +123,7 @@ main(int argc, char *argv[]) writeall(wbuf, pending); state = liblss16_decode_to_colour_index(&decoder, NULL, 0, &consumed, pixels, - sizeof(pixels) / sizeof(*pixels), &npixels, &error); + sizeof(pixels) / sizeof(*pixels), &npixels, &error); if (state == LIBLSS16_DECODE_ERROR) { error: fprintf(stderr, "%s: %s\n", argv0, liblss16_decode_strerror(error)); -- cgit v1.2.3-70-g09d2