summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohn Schmoller <jschmoller@xes-inc.com>2010-03-12 09:49:24 -0600
committerWolfgang Denk <wd@denx.de>2010-03-21 22:44:59 +0100
commitd611295032c30e6c533cb356005fa82ab7992824 (patch)
tree4734a250658adeeb09bad17aba4d1300c787b959 /common
parent6475b9f91bd33bfd38418469cabdcfc0fefbd848 (diff)
downloadu-boot-imx-d611295032c30e6c533cb356005fa82ab7992824.zip
u-boot-imx-d611295032c30e6c533cb356005fa82ab7992824.tar.gz
u-boot-imx-d611295032c30e6c533cb356005fa82ab7992824.tar.bz2
cmd history: Match history buffer size to console buffer
Match history buffer size to console buffer size. History buffer size was hard coded to 256, artificially limiting the command buffer size. The history buffer now tracks CONFIG_SYS_CBSIZE. Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Diffstat (limited to 'common')
-rw-r--r--common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index 6fec200..3949a5b 100644
--- a/common/main.c
+++ b/common/main.c
@@ -526,7 +526,7 @@ void reset_cmd_timeout(void)
#define CTL_CH(c) ((c) - 'a' + 1)
-#define MAX_CMDBUF_SIZE 256
+#define MAX_CMDBUF_SIZE CONFIG_SYS_CBSIZE
#define CTL_BACKSPACE ('\b')
#define DEL ((char)255)