projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common: command: tempory buffer should have size of command line buf
[platform/kernel/u-boot.git]
/
common
/
command.c
diff --git
a/common/command.c
b/common/command.c
index
e5d9b9c
..
21a6d40
100644
(file)
--- a/
common/command.c
+++ b/
common/command.c
@@
-318,7
+318,7
@@
static int find_common_prefix(char * const argv[])
return len;
}
-static char tmp_buf[CONFIG_SYS_CBSIZE
]; /* copy of console I/O buffer
*/
+static char tmp_buf[CONFIG_SYS_CBSIZE
+ 1]; /* copy of console I/O buffer
*/
int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
{