ref: b3732c890cba4aa7403ed28289127a9cb06f7864
parent: 982d98d6925be574d4a21a07f0013923abdccf07
author: Quentin Rameau <quinq@fifth.space>
date: Mon Feb 27 10:55:44 EST 2017
[libc] Fix typo in strcoll and strncmp (cf 8460493)
--- 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;
}