aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-06-22 06:57:00 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-06-22 06:57:00 +0000
commit90a6a59a2f27124917ee6931f66594a636a4c591 (patch)
treeb4c26d2a7fa1a96d3a2125b61490617c48bdfc56 /lib/url.c
parent8bae3d9007ffdaf21d01cef23a6c6afd342cd55c (diff)
Stopped using ranges in scanf character sequences (e.g. %[a-z]) since that
is not ANSI C, just a common extension. This caused problems on at least Open Watcom C.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 6391edb28..e61ec298c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3839,7 +3839,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
* The conn->host.name is currently [user:passwd@]host[:port] where host
* could be a hostname, IPv4 address or IPv6 address.
*************************************************************/
- if((1 == sscanf(conn->host.name, "[%*39[0-9a-fA-F:.]%c", &endbracket)) &&
+ if((1 == sscanf(conn->host.name, "[%*39[0123456789abcdefABCDEF:.]%c", &endbracket)) &&
(']' == endbracket)) {
/* this is a RFC2732-style specified IP-address */
conn->bits.ipv6_ip = TRUE;