projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix prefix id passing
[project/uclient.git]
/
uclient.c
diff --git
a/uclient.c
b/uclient.c
index
e7213a1
..
4c85e80
100644
(file)
--- a/
uclient.c
+++ b/
uclient.c
@@
-3,7
+3,7
@@
#include "uclient-utils.h"
#include "uclient-backend.h"
#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[] = {
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->backend = backend;
url->location = strcpy(uri_buf, location);
+ url->prefix = prefix - backend->prefix;
url->host = strncpy(host_buf, url_str, host_len);
url->host = strncpy(host_buf, url_str, host_len);