diff options
-rw-r--r-- | sys/src/cmd/webfs/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c index 58a0df91c..2b58ec7a6 100644 --- a/sys/src/cmd/webfs/http.c +++ b/sys/src/cmd/webfs/http.c @@ -94,11 +94,11 @@ tlswrap(int fd, char *servername) static Hconn* hdial(Url *u, int cached) { - char addr[128]; + char *addr; Hconn *h, *p; int fd, ctl; - snprint(addr, sizeof(addr), "tcp!%s!%s", u->host, u->port ? u->port : u->scheme); + addr = netmkaddr(u->host, "tcp", u->port ? u->port : u->scheme); qlock(&hpool); if(cached){ |