summaryrefslogtreecommitdiffstats
path: root/common/cli_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cli_simple.c')
-rw-r--r--common/cli_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cli_simple.c b/common/cli_simple.c
index 00a8d2f48b..d8b40c9391 100644
--- a/common/cli_simple.c
+++ b/common/cli_simple.c
@@ -258,7 +258,7 @@ int cli_simple_run_command(const char *cmd, int flag)
void cli_simple_loop(void)
{
- static char lastcommand[CONFIG_SYS_CBSIZE] = { 0, };
+ static char lastcommand[CONFIG_SYS_CBSIZE + 1] = { 0, };
int len;
int flag;
OpenPOWER on IntegriCloud