commit - 1cbd9b61a25311d671cbb048d9683f2c5beb49fa
commit + 3b726df7bc7919e6258dde70307c622eb06e734e
blob - da8ade9b8ac2b8a110d522f365d21f52c269b674
blob + f0d7a2e2ae0487414997c8675a685974b6c111eb
--- telescope.c
+++ telescope.c
for (p = protos; p->schema != NULL; ++p) {
if (!strcmp(tab->iri.iri_scheme, p->schema)) {
- /* patch the port -- XXX should update `port' too */
+ /* patch the port */
if (*tab->iri.iri_portstr == '\0' &&
p->port != NULL)
- strlcpy(tab->iri.iri_portstr, p->port,
- sizeof(tab->iri.iri_portstr));
+ iri_setport(&tab->iri, p->port);
p->loadfn(tab, tab->hist_cur->h);
return;