im an idiot

This commit is contained in:
aap 2016-02-25 01:02:07 +01:00
parent cb40fd1555
commit 3902ab328e
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ strncmp_ci(const char *s1, const char *s2, int n)
c2 = tolower(*s2); c2 = tolower(*s2);
if(c1 != c2) if(c1 != c2)
return c1 - c2; return c1 - c2;
if(c1 == '\0')
return 0;
s1++; s1++;
s2++; s2++;
} }