diff options
Diffstat (limited to 'board/xilinx/xilinx_iic/iic_adapter.c')
-rw-r--r-- | board/xilinx/xilinx_iic/iic_adapter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/xilinx/xilinx_iic/iic_adapter.c b/board/xilinx/xilinx_iic/iic_adapter.c index 8ddba6ade2d..0b7de7b997d 100644 --- a/board/xilinx/xilinx_iic/iic_adapter.c +++ b/board/xilinx/xilinx_iic/iic_adapter.c @@ -328,8 +328,9 @@ convert_env(void) s = getenv("E"); if (s != NULL) { sprintf(temp, "%c%c.%c%c.%c%c.%c%c.%c%c.%c%c", - *s++, *s++, *s++, *s++, *s++, *s++, - *s++, *s++, *s++, *s++, *s++, *s); + s[0], s[1], s[ 2], s[ 3], + s[4], s[5], s[ 6], s[ 7], + s[8], s[9], s[10], s[11] ); setenv("ethaddr", temp); setenv("E", NULL); } |