diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | sord/sordmm.hpp | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ sord (UNRELEASED) unstable; urgency=low * Add function sord_contains for checking for a triple pattern + * Fix Sord::Namespaces::qualify to no longer chop prefixes -- David Robillard <d@drobilla.net> (UNRELEASED) diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index 075ec04..1b5a874 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -83,7 +83,7 @@ public: SerdNode prefix; SerdChunk suffix; if (serd_env_qualify(_c_obj, &uri_node, &prefix, &suffix)) { - std::string ret((const char*)prefix.buf, prefix.n_bytes - 1); + std::string ret((const char*)prefix.buf, prefix.n_bytes); ret.append(":").append((const char*)suffix.buf, suffix.len); return ret; } |