projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d13ede
)
(main): Revert last change.
author
Jim Meyering
<jim@meyering.net>
Mon, 26 Apr 1999 02:19:51 +0000
(
02:19
+0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 26 Apr 1999 02:19:51 +0000
(
02:19
+0000)
Instead, loop on `optind < argc' to protect use of argv[optind].
src/seq.c
patch
|
blob
|
history
diff --git
a/src/seq.c
b/src/seq.c
index 27ebc9df0e5699b62542fccea4bb80a36ae9503b..613627dd03ac1ed8414fc19618f95efee05d6d30 100644
(file)
--- a/
src/seq.c
+++ b/
src/seq.c
@@
-143,7
+143,7
@@
main (int argc, char **argv)
/* We have to handle negative numbers in the command line but this
conflicts with the command line arguments. So explicitly check first
whether the next argument looks like a negative number. */
- while (
1
)
+ while (
optind < argc
)
{
if (argv[optind][0] == '-'
&& ((optc = argv[optind][1]) == decimal_point[0]