--- http.c.old 2001-07-30 00:06:40.000000000 +0200 +++ http.c 2004-06-14 01:33:27.000000000 +0200 @@ -1111,8 +1111,8 @@ if (!loc) return -1; - if (sscanf(loc, "http://%[.0-9A-Za-z_-]:%d", proxy, &port) < 1) - if (sscanf(loc, "%[.0-9A-Za-z_-]:%d", proxy, &port) !=2) + if (sscanf(loc, "http://%255[.0-9A-Za-z_-]:%d", proxy, &port) < 1) + if (sscanf(loc, "%255[.0-9A-Za-z_-]:%d", proxy, &port) !=2) return -1; _free(docp->http_proxy);