projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f614fe4
)
Fix compiler warning: subscript has type `char'
author
Yang Tse
<yangsita@gmail.com>
Tue, 23 Oct 2007 10:14:24 +0000
(10:14 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Tue, 23 Oct 2007 10:14:24 +0000
(10:14 +0000)
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index
7c63097
..
1e36a2d
100644
(file)
--- 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':