c2f4231bfe978f4009140828defe933e39cd5c8b galt Wed Nov 18 13:16:18 2015 -0800 User requested allowing longer URL diff --git src/lib/net.c src/lib/net.c index 1003e48..96506ff 100644 --- src/lib/net.c +++ src/lib/net.c @@ -437,31 +437,31 @@ *rangeEnd = atoll(z); } } } } void netParseUrl(char *url, struct netParsedUrl *parsed) /* Parse a URL into components. A full URL is made up as so: * http://user:password@hostName:port/file;byterange=0-499 * User and password may be cgi-encoded. * This is set up so that the http:// and the port are optional. */ { char *s, *t, *u, *v, *w; -char buf[1024]; +char buf[2048]; /* Make local copy of URL. */ if (strlen(url) >= sizeof(buf)) errAbort("Url too long: '%s'", url); strcpy(buf, url); url = buf; /* Find out protocol - default to http. */ s = trimSpaces(url); s = stringIn("://", url); if (s == NULL) { strcpy(parsed->protocol, "http"); s = url; }