aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-03 20:20:00 +0000
committerDavid Robillard <d@drobilla.net>2011-02-03 20:20:00 +0000
commit3f354243b7561e94116954260bce2ec0ac971453 (patch)
tree862939d1d14349b4dd5022ed80419f282559f564 /src
parent4d7ad7760097f9dd01094f1a581f4d1ee4bf28a5 (diff)
downloadserd-3f354243b7561e94116954260bce2ec0ac971453.tar.gz
serd-3f354243b7561e94116954260bce2ec0ac971453.tar.bz2
serd-3f354243b7561e94116954260bce2ec0ac971453.zip
Fix memory error caused by r89.
git-svn-id: http://svn.drobilla.net/serd/trunk@92 490d8e77-9747-427b-9fa3-0b8f29cee8a0
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