scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 11f3b95b620bb62279800a648d6cb9c736be78d2
parent 917ff92931010c683d6bbabee4c37bd25806f5a3
Author: Christopher M. Graff <cm0graff@gmail.com>
Date:   Tue, 28 Feb 2017 11:56:45 -0600

[libc] Fix typo in strncmp

Diffstat:
Mlibc/src/strncmp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/strncmp.c b/libc/src/strncmp.c @@ -5,7 +5,7 @@ int strncmp(const char *s1, const char *s2, size_t n) { - for (; n && *s1 && *s2 && *s1 != *s2; --n, ++s1, ++s2); + for (; n && *s1 && *s2 && *s1 == *s2; --n, ++s1, ++s2); /* nothing */; return n ? (*(unsigned char *)s1 - *(unsigned char *)s2) : 0; }