Eric nailed a but in strnequal() for macintosh

This commit is contained in:
Daniel Stenberg 2001-12-03 12:57:45 +00:00
parent c3ad019c99
commit 7493db2338
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ int curl_strnequal(const char *first, const char *second, size_t max)
first++;
second++;
}
if(0 == max)
return 1; /* they are equal this far */
return toupper(*first) == toupper(*second);
#endif
}