[hackers] [farbfeld] fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307 || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sun, 3 Apr 2016 20:39:55 +0200 (CEST)

commit 264979bf52261cb461212be8978c2a4697aa2e80
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Thu Mar 24 18:45:57 2016 +0100
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Sun Apr 3 20:39:13 2016 +0200

    fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307

diff --git a/ff2ppm.c b/ff2ppm.c
index 6ff4416..83b059e 100644
--- a/ff2ppm.c
+++ b/ff2ppm.c
_AT_@ -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();
                 }
_AT_@ -50,6 +50,7 @@ main(int argc, char *argv[])
                 for (i = 0; i < 3; i++) {
                         mask[i] = col[i] * colfac;
                 }
+ break;
         default:
                 usage();
         } ARGEND
Received on Sun Apr 03 2016 - 20:39:55 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 03 2016 - 20:48:14 CEST