aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-23 10:14:24 +0000
committerYang Tse <yangsita@gmail.com>2007-10-23 10:14:24 +0000
commite550df675a6e6d3b1f55a779df92c9b7b9747842 (patch)
treee6b658b92838294585ddd48faec273043b063451 /lib
parentf614fe4946b0e2d792a5da92844fc5d89323b7ef (diff)
Fix compiler warning: subscript has type `char'
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 7c63097c9..1e36a2d0e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2098,7 +2098,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if (checkprefix("ftp://", ppath) || checkprefix("ftps://", ppath)) {
char *p = strstr(ppath, ";type=");
if (p && p[6] && p[7] == 0) {
- switch (toupper(p[6])) {
+ switch (toupper((int)((unsigned char)p[6]))) {
case 'A':
case 'D':
case 'I':