From a6a719577de47ad695b568b7bc451b9475104a28 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 Jan 2011 15:53:48 +0000 Subject: Allocate enough space in atom for string terminator. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2795 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Atom.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'raul') diff --git a/raul/Atom.hpp b/raul/Atom.hpp index dbb398e..793e50e 100644 --- a/raul/Atom.hpp +++ b/raul/Atom.hpp @@ -19,13 +19,14 @@ #define RAUL_ATOM_HPP #include -#include +#include + #include +#include #include -#include #include #include -#include +#include namespace Raul { @@ -149,7 +150,7 @@ public: case FLOAT: return sizeof(float); case BOOL: return sizeof(bool); case URI: - case STRING: return strlen(_string_val); + case STRING: return strlen(_string_val) + 1; case BLOB: return _blob_val->size(); case DICT: return 0; // FIXME ? } -- cgit v1.2.1