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
hush shell: Avoid string write overflow when entering max cmd length
[platform/kernel/u-boot.git]
/
common
/
hush.c
diff --git
a/common/hush.c
b/common/hush.c
index
df10267
..
5b43224
100644
(file)
--- a/
common/hush.c
+++ b/
common/hush.c
@@
-996,7
+996,7
@@
static void get_user_input(struct in_str *i)
i->p = the_command;
#else
int n;
- static char the_command[CONFIG_SYS_CBSIZE];
+ static char the_command[CONFIG_SYS_CBSIZE
+ 1
];
#ifdef CONFIG_BOOT_RETRY_TIME
# ifndef CONFIG_RESET_TO_RETRY