mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:07:16 +03:00
lib: call Curl_strntolower instead of doing crafted loops
Closes #13627
This commit is contained in:
parent
9d6d614264
commit
aef369867f
2 changed files with 3 additions and 10 deletions
|
|
@ -234,10 +234,8 @@ size_t Curl_is_absolute_url(const char *url, char *buf, size_t buflen,
|
|||
/* the length of the scheme is the name part only */
|
||||
size_t len = i;
|
||||
if(buf) {
|
||||
Curl_strntolower(buf, url, i);
|
||||
buf[i] = 0;
|
||||
while(i--) {
|
||||
buf[i] = Curl_raw_tolower(url[i]);
|
||||
}
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue