diff options
author | Elias Fleckenstein <fleckenstein@elidragon.com> | 2021-08-31 13:28:59 +0000 |
---|---|---|
committer | Elias Fleckenstein <fleckenstein@elidragon.com> | 2021-08-31 13:28:59 +0000 |
commit | c8c744069281443cff95e41ccc4f6e405a081d86 (patch) | |
tree | be2c381f58730a6234bc0c94d3bc2d38c6e6e85e | |
parent | 49b5319f761e2de848d35361a507a5af8b6eb1ed (diff) | |
download | plan9front-webfs.tar.xz |
cmd/webfs: Use netmkaddr instead of snprintwebfs
-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){ |