mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Pavel fixed a segfault in yes.
-Erik
This commit is contained in:
parent
3199bda52e
commit
9c8ffa02f4
@ -48,6 +48,7 @@
|
|||||||
* Fixed more and ps to have sensible terminal width defaults, thanks
|
* Fixed more and ps to have sensible terminal width defaults, thanks
|
||||||
to Pavel Roskin.
|
to Pavel Roskin.
|
||||||
* Fixed all fatalError() calls lacking a "\n", thanks to Pavel Roskin.
|
* Fixed all fatalError() calls lacking a "\n", thanks to Pavel Roskin.
|
||||||
|
* Fixed a segfault in yes when no args were given -- Pavel Roskin.
|
||||||
* More doc updates
|
* More doc updates
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ extern int yes_main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (argc >=1 && *argv[1]=='-') {
|
if (argc >= 2 && *argv[1] == '-') {
|
||||||
usage("yes [OPTION]... [STRING]...\n"
|
usage("yes [OPTION]... [STRING]...\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
"\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
|
"\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
|
||||||
|
2
yes.c
2
yes.c
@ -27,7 +27,7 @@ extern int yes_main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (argc >=1 && *argv[1]=='-') {
|
if (argc >= 2 && *argv[1] == '-') {
|
||||||
usage("yes [OPTION]... [STRING]...\n"
|
usage("yes [OPTION]... [STRING]...\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
"\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
|
"\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user