From: Felix Fietkau Date: Tue, 25 Mar 2014 09:14:57 +0000 (+0100) Subject: fix prefix id passing X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=commitdiff_plain;h=8bbe2130890db78856bb5731fa3e16a71d549bfe fix prefix id passing Signed-off-by: Felix Fietkau --- diff --git a/uclient.c b/uclient.c index f5e9c51..4c85e80 100644 --- a/uclient.c +++ b/uclient.c @@ -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);