mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Eric nailed a but in strnequal() for macintosh
This commit is contained in:
parent
c3ad019c99
commit
7493db2338
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user