]> granicus.if.org Git - curl/commitdiff
Eric nailed a but in strnequal() for macintosh
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Dec 2001 12:57:45 +0000 (12:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Dec 2001 12:57:45 +0000 (12:57 +0000)
lib/strequal.c

index 6859e26bd19a537f976daf098d293ec5147134d8..df5d4f14b54592fda8c03d364a69d3779e27f7ff 100644 (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
 }