diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-27 07:49:41 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-27 07:49:41 +0000 |
commit | 088875fec497e7f41f2257b4ac8c05560b391ff9 (patch) | |
tree | cf1c72c5d82d68c90d0db97f42a543c2e3b98eb4 | |
parent | af44a0e8f459bd0aa98961b87f6dff07d139d618 (diff) | |
download | busybox-w32-088875fec497e7f41f2257b4ac8c05560b391ff9.tar.gz busybox-w32-088875fec497e7f41f2257b4ac8c05560b391ff9.tar.bz2 busybox-w32-088875fec497e7f41f2257b4ac8c05560b391ff9.zip |
Use BUFSIZ for the_command to match size used in cmdedit
-rw-r--r-- | hush.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str) | |||
780 | static void get_user_input(struct in_str *i) | 780 | static void get_user_input(struct in_str *i) |
781 | { | 781 | { |
782 | char *prompt_str; | 782 | char *prompt_str; |
783 | static char the_command[MAX_LINE]; | 783 | static char the_command[BUFSIZ]; |
784 | 784 | ||
785 | setup_prompt_string(i->promptmode, &prompt_str); | 785 | setup_prompt_string(i->promptmode, &prompt_str); |
786 | #ifdef BB_FEATURE_COMMAND_EDITING | 786 | #ifdef BB_FEATURE_COMMAND_EDITING |
diff --git a/shell/hush.c b/shell/hush.c index cec2549be..9a43a03dc 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -780,7 +780,7 @@ static inline void setup_prompt_string(int promptmode, char **prompt_str) | |||
780 | static void get_user_input(struct in_str *i) | 780 | static void get_user_input(struct in_str *i) |
781 | { | 781 | { |
782 | char *prompt_str; | 782 | char *prompt_str; |
783 | static char the_command[MAX_LINE]; | 783 | static char the_command[BUFSIZ]; |
784 | 784 | ||
785 | setup_prompt_string(i->promptmode, &prompt_str); | 785 | setup_prompt_string(i->promptmode, &prompt_str); |
786 | #ifdef BB_FEATURE_COMMAND_EDITING | 786 | #ifdef BB_FEATURE_COMMAND_EDITING |