projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
[oweals/busybox.git]
/
yes.c
diff --git
a/yes.c
b/yes.c
index 97b6f653cd4b0df3f186f632051d9819984ad05d..1718af4bb8891d46b9a72e1e0c51d5ce8d9378eb 100644
(file)
--- a/
yes.c
+++ b/
yes.c
@@
-27,7
+27,7
@@
extern int yes_main(int argc, char **argv)
{
int i;
- if (argc >=
1 && *argv[1]==
'-') {
+ if (argc >=
2 && *argv[1] ==
'-') {
usage("yes [OPTION]... [STRING]...\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"