Use BUFSIZ for the_command to match size used in cmdedit
This commit is contained in:
parent
af44a0e8f4
commit
088875fec4
2
hush.c
2
hush.c
@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str)
|
|||||||
static void get_user_input(struct in_str *i)
|
static void get_user_input(struct in_str *i)
|
||||||
{
|
{
|
||||||
char *prompt_str;
|
char *prompt_str;
|
||||||
static char the_command[MAX_LINE];
|
static char the_command[BUFSIZ];
|
||||||
|
|
||||||
setup_prompt_string(i->promptmode, &prompt_str);
|
setup_prompt_string(i->promptmode, &prompt_str);
|
||||||
#ifdef BB_FEATURE_COMMAND_EDITING
|
#ifdef BB_FEATURE_COMMAND_EDITING
|
||||||
|
@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str)
|
|||||||
static void get_user_input(struct in_str *i)
|
static void get_user_input(struct in_str *i)
|
||||||
{
|
{
|
||||||
char *prompt_str;
|
char *prompt_str;
|
||||||
static char the_command[MAX_LINE];
|
static char the_command[BUFSIZ];
|
||||||
|
|
||||||
setup_prompt_string(i->promptmode, &prompt_str);
|
setup_prompt_string(i->promptmode, &prompt_str);
|
||||||
#ifdef BB_FEATURE_COMMAND_EDITING
|
#ifdef BB_FEATURE_COMMAND_EDITING
|
||||||
|
Loading…
Reference in New Issue
Block a user