From: Wolfgang Denk Date: Sun, 21 Mar 2010 18:58:11 +0100 Subject: [U-Boot] [PATCH 1/2] console: Fix console buffer overrun In-Reply-To: <69e2af90a136fea8e81009f4d58ffe28eddf7362.1268408614.git.jschmoller@xes-inc.com> References: <69e2af90a136fea8e81009f4d58ffe28eddf7362.1268408614.git.jschmoller@xes-inc.com> Message-ID: <20100321175811.9C28C4C022@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear John Schmoller, In message <69e2af90a136fea8e81009f4d58ffe28eddf7362.1268408614.git.jschmoller@xes-inc.com> you wrote: > 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 > --- > common/main.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied to "next" branch. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Every solution breeds new problems.