diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/pacsort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c index 9d248fad..b0137ec4 100644 --- a/src/util/pacsort.c +++ b/src/util/pacsort.c @@ -308,7 +308,7 @@ static const char *nth_column(const char *string) int col; ptr = prev = string; - for(col = 1; ptr && col <= opts.sortkey; col++) { + for(col = 0; ptr && col < opts.sortkey; col++) { prev = ptr; ptr = strchr(ptr, opts.delim); if(ptr) { |