From 7481266e4e4a1488ab197cc7beecd6eda0c34ffb Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Mon, 12 Dec 2005 16:06:05 +0100 Subject: --- examples/eepro100_eeprom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/eepro100_eeprom.c b/examples/eepro100_eeprom.c index 020c31d..a52e68d 100644 --- a/examples/eepro100_eeprom.c +++ b/examples/eepro100_eeprom.c @@ -79,7 +79,10 @@ static inline short inw(long addr) static inline void *memcpy(void *dst, const void *src, unsigned int len) { char *ret = dst; - while (len-- > 0) *(ret)++ = *((char *)src)++; + while (len-- > 0) { + *ret++ = *((char *)src); + src++; + } return (void *)ret; } -- cgit v1.1