X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient.c;h=4c85e800cd30de398c15ed2104fc20b24b4e4495;hp=e7213a1002ecd7b1914104ad74d7fb294239338e;hb=8bbe2130890db78856bb5731fa3e16a71d549bfe;hpb=f619ebe9d3343867bc8a8d5e98e6b81e645129e5;ds=sidebyside diff --git a/uclient.c b/uclient.c index e7213a1..4c85e80 100644 --- a/uclient.c +++ b/uclient.c @@ -3,7 +3,7 @@ #include "uclient-utils.h" #include "uclient-backend.h" -struct uclient_url * __hidden +struct uclient_url __hidden * uclient_get_url(const char *url_str, const char *auth_str) { static const struct uclient_backend *backends[] = { @@ -54,6 +54,7 @@ uclient_get_url(const char *url_str, const char *auth_str) url->backend = backend; url->location = strcpy(uri_buf, location); + url->prefix = prefix - backend->prefix; url->host = strncpy(host_buf, url_str, host_len);