projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix specifying ports in urls
[project/uclient.git]
/
uclient.c
diff --git
a/uclient.c
b/uclient.c
index
2ac052d
..
82553a5
100644
(file)
--- a/
uclient.c
+++ b/
uclient.c
@@
-101,8
+101,10
@@
uclient_get_url(const char *url_str, const char *auth_str)
url->port = next + 1;
} else {
next = strrchr(url->host, ':');
- if (next)
+ if (next) {
+ *next = 0;
url->port = next + 1;
+ }
}
return url;