commit 83d0cddfed6c69d00071efb8eb8785b469752d2b
parent 14d3966cf69de96f4a25b0f4ffb462d51b3b2112
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 27 Feb 2017 15:55:44 +0100
[libc] Fix typo in strcoll and strncmp (cf 8460493)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/src/strcoll.c b/libc/src/strcoll.c
@@ -5,7 +5,7 @@
int
strcoll(const char *s1, const char *s2)
{
- while (*s1 && *s2 && *s1 != *s2)
+ while (*s1 && *s2 && *s1 == *s2)
++s1, ++s2;
return *(unsigned char *) s1 - *(unsigned char *) s2;
}