farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 264979bf52261cb461212be8978c2a4697aa2e80
parent 265ded62c50b4d6be72fbff0a10304280ec233e5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 24 Mar 2016 18:45:57 +0100

fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307

Diffstat:
ff2ppm.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ff2ppm.c b/ff2ppm.c @@ -41,7 +41,7 @@ main(int argc, char *argv[]) if (collen != 3 && collen != 6 && collen != 12) { usage(); } - colfmt[1] = colfmt[4] = colfmt[7] = ((collen / 3) - '0'); + colfmt[1] = colfmt[4] = colfmt[7] = ((collen / 3) + '0'); if (sscanf(color, colfmt, col, col + 1, col + 2) != 3) { usage(); } @@ -50,6 +50,7 @@ main(int argc, char *argv[]) for (i = 0; i < 3; i++) { mask[i] = col[i] * colfac; } + break; default: usage(); } ARGEND