From c8c744069281443cff95e41ccc4f6e405a081d86 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 31 Aug 2021 13:28:59 +0000 Subject: cmd/webfs: Use netmkaddr instead of snprint --- sys/src/cmd/webfs/http.c | 4 ++-- 1 file 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){ -- cgit v1.2.3