diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-09 22:16:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-09 22:16:22 +0000 |
commit | 12844e567437fb8e7c4e9613e123c13f0b43e5c0 (patch) | |
tree | 85a230fc47d316b2d0b0639f90c5d775b32573a4 /src | |
parent | 0dedf7cad16f1bac161d666851af48693e4dc668 (diff) | |
download | coreutils-12844e567437fb8e7c4e9613e123c13f0b43e5c0.tar.xz |
fix off-by-one error in last change
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c index 0357c8e33..76627ff61 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2265,7 +2265,7 @@ main (int argc, char **argv) long_options, NULL)) == -1)) { - if (argc < optind) + if (argc <= optind) break; files[nfiles++] = argv[optind++]; } |