aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-10-18 10:05:55 +0000
committerOmar Polo <op@omarpolo.com>2021-10-18 10:05:55 +0000
commit4842c72d9f3f45478cb641e15a3272e541fb8a18 (patch)
tree1a1b840362a8e78f6a71c67bce0d7157e0848cb5 /iri.c
parentf8bcc13822154d8558246c9f994cf43c413a5714 (diff)
fmt
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iri.c b/iri.c
index fd34c2e..ae292d0 100644
--- a/iri.c
+++ b/iri.c
@@ -229,7 +229,7 @@ path_elide_dotdot(char *path, char *i, int incr)
if (i == path)
return 0;
for (j = i-2; j != path && *j != '/'; j--)
- /* noop */ ;
+ /* noop */ ;
if (*j == '/')
j++;
i += incr;
@@ -428,7 +428,7 @@ serialize_iri(struct iri *i, char *buf, size_t len)
strlcpy(buf, i->schema, len);
strlcat(buf, "://", len);
- strlcat(buf, i->host, len);
+ strlcat(buf, i->host, len);
strlcat(buf, "/", len);
if (i->path != NULL)