Use BUFSIZ for the_command to match size used in cmdedit

This commit is contained in:
Eric Andersen 2001-04-27 07:49:41 +00:00
parent af44a0e8f4
commit 088875fec4
2 changed files with 2 additions and 2 deletions

2
hush.c
View File

@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str)
static void get_user_input(struct in_str *i)
{
char *prompt_str;
static char the_command[MAX_LINE];
static char the_command[BUFSIZ];
setup_prompt_string(i->promptmode, &prompt_str);
#ifdef BB_FEATURE_COMMAND_EDITING

View File

@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str)
static void get_user_input(struct in_str *i)
{
char *prompt_str;
static char the_command[MAX_LINE];
static char the_command[BUFSIZ];
setup_prompt_string(i->promptmode, &prompt_str);
#ifdef BB_FEATURE_COMMAND_EDITING