mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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