diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-03-24 18:45:57 +0100 |
---|---|---|
committer | FRIGN <dev@frign.de> | 2016-04-03 20:39:13 +0200 |
commit | 264979bf52261cb461212be8978c2a4697aa2e80 (patch) | |
tree | 5aa19f819b1eddf2f65310ac8ed38b94374ff400 /ff2ppm.c | |
parent | 265ded62c50b4d6be72fbff0a10304280ec233e5 (diff) |
fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307
Diffstat (limited to 'ff2ppm.c')
-rw-r--r-- | ff2ppm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |