aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index 66e5b5c1..1c89eb6d 100644
--- a/src/node.c
+++ b/src/node.c
@@ -57,7 +57,8 @@ serd_uri_string_length(const SerdURI* uri)
ADD_LEN(uri->query, 1); // + leading `?'
ADD_LEN(uri->fragment, 1); // + leading `#'
- return len;
+ // Add 2 for authority // prefix (added even though authority.len = 0)
+ return len + 2; // + 2 for authority //
}
static size_t