--- src/lib/compat.c.orig 2006-11-10 16:14:09.657213418 -0500 +++ src/lib/compat.c 2006-11-10 16:19:28.134744825 -0500 @@ -34,7 +34,7 @@ int my_strncasecmp(const char *s1, const char *s2, size_t max_chars) { - while (max_chars > 0 && *s1 != '\0' && + while (--max_chars > 0 && *s1 != '\0' && i_toupper(*s1) == i_toupper(*s2)) { s1++; s2++; }