Use BUFSIZ for the_command to match size used in cmdedit
authorEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 07:49:41 +0000 (07:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 07:49:41 +0000 (07:49 -0000)
hush.c
shell/hush.c

diff --git a/hush.c b/hush.c
index cec2549be7e6d4af25ca3c291c04ad102db313da..9a43a03dc958f4d0fb8b3e97725fa1bdac61c5f3 100644 (file)
--- a/hush.c
+++ b/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)
 {
        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
index cec2549be7e6d4af25ca3c291c04ad102db313da..9a43a03dc958f4d0fb8b3e97725fa1bdac61c5f3 100644 (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