ref: bb99c8599bac91bd98e0f9bbe0c994e97f0956a1
parent: 6a7602ccce7d0a6489c101866c8372c99cac43d8
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Dec 7 04:38:51 EST 2017
[lib/c] Fix small typo in strncmp() We want equal strings, no different strings
--- a/lib/c/src/strncmp.c
+++ b/lib/c/src/strncmp.c
@@ -8,7 +8,7 @@
if (n == 0)
return 0;
- while ((c = *s1) != '\0' && c != *s2) {
+ while ((c = *s1) != '\0' && c == *s2) {
if (--n == 0)
return 0;
++s1, ++s2;