Skip to content
Snippets Groups Projects
Commit 6475b9f9 authored by John Schmoller's avatar John Schmoller Committed by Wolfgang Denk
Browse files

console: Fix console buffer overrun


When CONFIG_SYS_CBSIZE equals MAX_CMDBUF_SIZE, a command string of
maximum length will overwrite part of the history buffer, causing the
board to die. Expand the console_buffer and hist_lines buffer by one
character each to hold the missing NULL char.

Signed-off-by: default avatarJohn Schmoller <jschmoller@xes-inc.com>
parent e070a56c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment