From 15b327e6b13fa4859cdfc3ed0985ee3d22350c6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 31 Aug 2011 22:43:42 +0000 Subject: 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 --- sord/sordmm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sord') 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; } -- cgit v1.2.1