projects
/
oweals
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760cd6f
)
fix specifying ports in urls
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 29 Mar 2014 19:25:30 +0000
(20:25 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 29 Mar 2014 19:25:30 +0000
(20:25 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient.c
patch
|
blob
|
history
diff --git
a/uclient.c
b/uclient.c
index 2ac052d8bbf5529063b1f3da4da4852d33a56f55..82553a56847a4dae7b526c34a2396657e556e8cd 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;