From: Wolfgang Denk Date: Thu, 6 Nov 2014 13:03:03 +0000 (+0100) Subject: board/renesas/ecovec/ecovec.c: fix buffer overflow X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=44442c13ba2f63a67664ab5cc7ce6c2fe009e4a0;p=u-boot.git board/renesas/ecovec/ecovec.c: fix buffer overflow Fix error detected by cppcheck: [board/renesas/ecovec/ecovec.c:66]: (error) Buffer is accessed out of bounds. Signed-off-by: Wolfgang Denk Cc: Nobuhiro Iwamatsu Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/board/renesas/ecovec/ecovec.c b/board/renesas/ecovec/ecovec.c index 2804d9133d..d862d997e5 100644 --- a/board/renesas/ecovec/ecovec.c +++ b/board/renesas/ecovec/ecovec.c @@ -41,7 +41,7 @@ static void debug_led(u8 led) int board_late_init(void) { u8 mac[6]; - char env_mac[17]; + char env_mac[18]; udelay(1000);