scc

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

commit 8460493b18d3aeb17947c988b2062fc546cde80a
parent 33f6a64348fbdae4298a057cf134969f78a57f86
Author: cmgraff <cm0graff@gmail.com>
Date:   Thu, 23 Feb 2017 12:53:23 -0600

[libc] Fix typo in strcmp

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

diff --git a/libc/src/strcmp.c b/libc/src/strcmp.c @@ -5,7 +5,7 @@ int strcmp(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; }