From: Daniel Stenberg Date: Mon, 3 Dec 2001 12:57:45 +0000 (+0000) Subject: Eric nailed a but in strnequal() for macintosh X-Git-Tag: curl-7_9_2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7493db2338a669261ed82cce834446b4c3b08bd5;p=thirdparty%2Fcurl.git Eric nailed a but in strnequal() for macintosh --- diff --git a/lib/strequal.c b/lib/strequal.c index 6859e26bd1..df5d4f14b5 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -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 }