Use BUFSIZ for the_command to match size used in cmdedit
[oweals/busybox.git] / shell / hush.c
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