diff options
| author | Mattias Andrée <m@maandree.se> | 2026-03-01 03:56:16 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-03-01 03:56:16 +0100 |
| commit | 948b23ca1fabfe65ab36d866031422e92840282f (patch) | |
| tree | 07ff00b4959f734f65761896d39920e27396feb7 /lss16toppm.c | |
| parent | fix typos (diff) | |
| download | liblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.gz liblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.bz2 liblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.xz | |
Fix mistakes, and finish ppmtolss16
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'lss16toppm.c')
| -rw-r--r-- | lss16toppm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |
