diff options
author | David Robillard <d@drobilla.net> | 2011-02-03 20:20:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-03 20:20:00 +0000 |
commit | 3f354243b7561e94116954260bce2ec0ac971453 (patch) | |
tree | 862939d1d14349b4dd5022ed80419f282559f564 /src | |
parent | 4d7ad7760097f9dd01094f1a581f4d1ee4bf28a5 (diff) | |
download | serd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |