aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2023-07-12 18:23:21 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-07-16 17:36:17 +0000
commit4da7282a1882fc03c99591c27d44a2e6dfda364b (patch)
tree336c964f060209e59151e79e64fdba13d4de1763 /lib/libc/string
parentc1e63e352e34b55ad577011fa4729f0638fb3fdf (diff)
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/bcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/bcmp.c b/lib/libc/string/bcmp.c
index 96cd49039eee..c42fe79ddb2f 100644
--- a/lib/libc/string/bcmp.c
+++ b/lib/libc/string/bcmp.c
@@ -51,7 +51,7 @@ bcmp(const void *b1, const void *b2, size_t length)
p2 = (char *)b2;
do
if (*p1++ != *p2++)
- break;
+ return (1);
while (--length);
- return (length);
+ return (0);
}