aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2007-03-28 21:15:50 +0000
committerWarner Losh <imp@FreeBSD.org>2007-03-28 21:15:50 +0000
commit5a8da39aa73168170bfbf37924f592d72d4ef4e5 (patch)
tree4f759bab374b8b890cc7d8ba3a48377b97b5b21f /sys/boot
parenta4802919077e00a7d7f3893ee21e3b3267d86705 (diff)
Notes
Diffstat (limited to 'sys/boot')
-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 bc157cf65e12..322042f23cf2 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));
}