board/renesas/ecovec/ecovec.c: fix buffer overflow
authorWolfgang Denk <wd@denx.de>
Thu, 6 Nov 2014 13:03:03 +0000 (14:03 +0100)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 10 Nov 2014 00:39:09 +0000 (09:39 +0900)
Fix error detected by cppcheck:

[board/renesas/ecovec/ecovec.c:66]: (error) Buffer is accessed out of
bounds.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/ecovec/ecovec.c

index 2804d91..d862d99 100644 (file)
@@ -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);