diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-04 10:02:18 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-04 10:02:18 +0000 |
commit | 5d38e5d88d423a7a84f714841cc161829f236b13 (patch) | |
tree | e52e3c898db58eee95597566b149a450331ee7ba /titan.c | |
parent | 11ff7f934e2bb3920b900327c5fb38d30691c2ca (diff) |
titan: clean up IRI/URI/URL mess; it's a IRI what we parse
Diffstat (limited to 'titan.c')
-rw-r--r-- | titan.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -279,15 +279,15 @@ main(int argc, char **argv) if (fstat(fileno(in), &sb) == -1) err(1, "fstat"); - /* prepare the URL */ + /* prepare the IRI */ if (strlcpy(iribuf, argv[0], sizeof(iribuf)) >= sizeof(iribuf)) - errx(1, "URL too long"); + errx(1, "IRI too long"); if (!parse_iri(iribuf, &iri, &errstr)) errx(1, "invalid IRI: %s", errstr); if (strcmp(iri.schema, "titan") != 0) - errx(1, "not a titan:// URI"); + errx(1, "not a titan:// IRI"); if (token && mime) { if (asprintf(&path, "%s;size=%lld;token=%s;mime=%s", iri.path, @@ -310,7 +310,7 @@ main(int argc, char **argv) iri.path = path; if (!serialize_iri(&iri, reqbuf, sizeof(reqbuf)) || strlcat(reqbuf, "\r\n", sizeof(reqbuf)) >= sizeof(reqbuf)) - errx(1, "URI too long"); + errx(1, "IRI too long"); if ((config = tls_config_new()) == NULL) err(1, "tls_config_new"); |