summaryrefslogtreecommitdiff
path: root/lib/urlapi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-06 00:17:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-06 08:32:36 +0200
commit8dd95da35be27c28da9e0d082f3ce02d2200b82a (patch)
treeff349087b1934fe26b77bcd50d4061f50827c86d /lib/urlapi.c
parent7b66050eaeb6a8dc1c4076ebaaa4437eaba899e8 (diff)
downloadcurl-8dd95da35be27c28da9e0d082f3ce02d2200b82a.tar.gz
ctype: remove all use of <ctype.h>, use our own versions
Except in the test servers. Closes #9433
Diffstat (limited to 'lib/urlapi.c')
-rw-r--r--lib/urlapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/urlapi.c b/lib/urlapi.c
index 1e8046b74..0e07d0ba3 100644
--- a/lib/urlapi.c
+++ b/lib/urlapi.c
@@ -260,7 +260,7 @@ bool Curl_is_absolute_url(const char *url, char *buf, size_t buflen)
if(buf) {
buf[i] = 0;
while(i--) {
- buf[i] = (char)TOLOWER(url[i]);
+ buf[i] = Curl_raw_tolower(url[i]);
}
}
return TRUE;
@@ -1664,8 +1664,8 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
/* make sure percent encoded are lower case */
if((*p == '%') && ISXDIGIT(p[1]) && ISXDIGIT(p[2]) &&
(ISUPPER(p[1]) || ISUPPER(p[2]))) {
- p[1] = (char)TOLOWER(p[1]);
- p[2] = (char)TOLOWER(p[2]);
+ p[1] = Curl_raw_tolower(p[1]);
+ p[2] = Curl_raw_tolower(p[2]);
p += 3;
}
else