summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/arm/at91/libat91/memcmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/arm/at91/libat91/memcmp.c b/sys/boot/arm/at91/libat91/memcmp.c
index bc157cf..322042f 100644
--- a/sys/boot/arm/at91/libat91/memcmp.c
+++ b/sys/boot/arm/at91/libat91/memcmp.c
@@ -34,5 +34,5 @@ p_memcmp(const char *to, const char *from, unsigned size)
while ((--size) && (*to++ == *from++))
continue;
- return (*to != *from);
+ return (size || (*to != *from));
}
OpenPOWER on IntegriCloud