ref: 4a695da3a6e31f002608accb745d4369fe7f0eaa
parent: f0c283da75c8f123cfe7485828c3045f27f35802
author: cmgraff <cm0graff@gmail.com>
date: Thu Feb 23 07:53:23 EST 2017
[libc] Fix typo in strcmp
--- 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;
}