diff options
| author | Thomas Knudsen <thokn@sdfe.dk> | 2017-12-20 16:28:40 +0100 |
|---|---|---|
| committer | Thomas Knudsen <thokn@sdfe.dk> | 2017-12-20 16:28:40 +0100 |
| commit | 345af3c92c3ecb6d2810d09be85e3381ef66083e (patch) | |
| tree | dc0298bbad02989f5cfc8dca07c2b36719c4b006 | |
| parent | a70e8a3579064e80f65b1ae118ae90588142886f (diff) | |
| download | PROJ-345af3c92c3ecb6d2810d09be85e3381ef66083e.tar.gz PROJ-345af3c92c3ecb6d2810d09be85e3381ef66083e.zip | |
Repair column selector bug
| -rw-r--r-- | src/cct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
