commit - f72450f43383c5634b24b3f3b1316afa56217ed5
commit + f94c7ac140e31e23c874eda4c9d269b37b43a47b
blob - cc922c12544e69b577af0e77f0c16ce4dc1cd091
blob + c9076fcae5af091ffa81f824d60e47de44767521
--- telescope.c
+++ telescope.c
memset(&req, 0, sizeof(req));
strlcpy(req.host, tab->uri.host, sizeof(req.host));
- strlcpy(req.port, tab->uri.port, sizeof(req.host));
+ strlcpy(req.port, tab->uri.port, sizeof(req.port));
return make_request(tab, &req, PROTO_GEMINI, tab->hist_cur->h);
}
memset(&req, 0, sizeof(req));
strlcpy(req.host, tab->uri.host, sizeof(req.host));
- strlcpy(req.port, tab->uri.port, sizeof(req.host));
+ strlcpy(req.port, tab->uri.port, sizeof(req.port));
path = gopher_skip_selector(tab->uri.path, &type);
switch (type) {
memset(&req, 0, sizeof(req));
strlcpy(req.host, p->host, sizeof(req.host));
- strlcpy(req.port, p->port, sizeof(req.host));
+ strlcpy(req.port, p->port, sizeof(req.port));
tab->proxy = p;
memset(&req, 0, sizeof(req));
strlcpy(req.host, tab->uri.host, sizeof(req.host));
- strlcpy(req.port, tab->uri.port, sizeof(req.host));
+ strlcpy(req.port, tab->uri.port, sizeof(req.port));
/* +2 to skip /7 */
strlcpy(req.req, tab->uri.path+2, sizeof(req.req));