Skip to content

Commit

Permalink
Merge pull request #724 from busstoptaktik/repair-cct-columns
Browse files Browse the repository at this point in the history
Repair column selector bug
Fixes #723
  • Loading branch information
busstoptaktik committed Dec 20, 2017
2 parents 5239537 + 345af3c commit 0900fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cct.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int main(int argc, char **argv) {
}

if (opt_given (o, "c")) {
int ncols = sscanf (opt_arg (o, "c"), "%d,%d,%d,%d", columns_xyzt, columns_xyzt+1, columns_xyzt+3, columns_xyzt+3);
int ncols = sscanf (opt_arg (o, "c"), "%d,%d,%d,%d", columns_xyzt, columns_xyzt+1, columns_xyzt+2, columns_xyzt+3);
if (ncols != nfields) {
fprintf (stderr, "%s: Too few input columns given: '%s'\n", o->progname, opt_arg (o, "c"));
free (o);
Expand Down

0 comments on commit 0900fa0

Please sign in to comment.