From: Jim Meyering Date: Fri, 9 May 2003 22:16:22 +0000 (+0000) Subject: fix off-by-one error in last change X-Git-Tag: v5.0.1~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12844e567437fb8e7c4e9613e123c13f0b43e5c0;p=thirdparty%2Fcoreutils.git fix off-by-one error in last change --- diff --git a/src/sort.c b/src/sort.c index 0357c8e337..76627ff616 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++]; }