summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-08-31 22:43:42 +0000
committerDavid Robillard <d@drobilla.net>2011-08-31 22:43:42 +0000
commit15b327e6b13fa4859cdfc3ed0985ee3d22350c6e (patch)
tree6c3b71b635b4922d8e55bed56053fe406ad2f169 /sord
parent38948382c847b7eae55fcf3e7c465c081dd44d50 (diff)
downloadsord-15b327e6b13fa4859cdfc3ed0985ee3d22350c6e.tar.gz
sord-15b327e6b13fa4859cdfc3ed0985ee3d22350c6e.tar.bz2
sord-15b327e6b13fa4859cdfc3ed0985ee3d22350c6e.zip
Fix Sord::Namespaces::qualify which was chopping the last character from the prefix name.
git-svn-id: http://svn.drobilla.net/sord/trunk@156 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-rw-r--r--sord/sordmm.hpp2
1 files changed, 1 insertions, 1 deletions
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;
}