[hackers] [scc] [libc] Fix typo in strcoll and strncmp (cf 8460493) || Quentin Rameau
commit 83d0cddfed6c69d00071efb8eb8785b469752d2b
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Feb 27 15:55:44 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Feb 28 21:07:03 2017 +0100
[libc] Fix typo in strcoll and strncmp (cf 8460493)
diff --git a/libc/src/strcoll.c b/libc/src/strcoll.c
index edd6840..c9ddff6 100644
--- a/libc/src/strcoll.c
+++ b/libc/src/strcoll.c
_AT_@ -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;
}
Received on Tue Feb 28 2017 - 21:08:14 CET
This archive was generated by hypermail 2.3.0
: Tue Feb 28 2017 - 21:12:23 CET