summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/eepro100_eeprom.c5
1 files changed, 4 insertions, 1 deletions
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;
}