]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
console: Fix console buffer overrun
authorJohn Schmoller <jschmoller@xes-inc.com>
Fri, 12 Mar 2010 15:49:23 +0000 (09:49 -0600)
committerWolfgang Denk <wd@denx.de>
Sun, 21 Mar 2010 21:44:58 +0000 (22:44 +0100)
commit6475b9f91bd33bfd38418469cabdcfc0fefbd848
treedc8baee5e589fac670329f570a91fec52dd9c38f
parente070a56c777f1fd05950e1bc63483c19decd6f78
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: John Schmoller <jschmoller@xes-inc.com>
common/main.c