diff --git a/src/rwbase.cpp b/src/rwbase.cpp index a00c084..cd1ebc8 100644 --- a/src/rwbase.cpp +++ b/src/rwbase.cpp @@ -78,6 +78,8 @@ strncmp_ci(const char *s1, const char *s2, int n) c2 = tolower(*s2); if(c1 != c2) return c1 - c2; + if(c1 == '\0') + return 0; s1++; s2++; }