From 7c1e48a2902373c5b2d893bd9ffd44056c044538 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 May 2011 06:57:12 +0000 Subject: Fix string_to_node incorrect string length git-svn-id: http://svn.drobilla.net/sord/trunk@124 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 75e4a21..6e92d37 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -67,7 +67,7 @@ public: static inline SerdNode string_to_node(SerdType type, const std::string& s) { SerdNode ret = { - (const uint8_t*)s.c_str(), s.length() + 1, s.length(), 0, type }; + (const uint8_t*)s.c_str(), s.length(), s.length(), 0, type }; return ret; } -- cgit v1.2.1