diff options
author | David Robillard <d@drobilla.net> | 2013-02-09 20:12:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-09 20:12:30 +0000 |
commit | fac474a727f8bf14aa01fcbaa0260287926ecff8 (patch) | |
tree | dbce2836817dac4604305b216df5563a13c77491 | |
parent | 46c3a486eee4b2ef69d9cc4f9e2701082c64d7c8 (diff) | |
download | ingen-fac474a727f8bf14aa01fcbaa0260287926ecff8.tar.gz ingen-fac474a727f8bf14aa01fcbaa0260287926ecff8.tar.bz2 ingen-fac474a727f8bf14aa01fcbaa0260287926ecff8.zip |
Fix crash when printing atoms with string types.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5050 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Forge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Forge.cpp b/src/Forge.cpp index ffd87bbc..14d727d2 100644 --- a/src/Forge.cpp +++ b/src/Forge.cpp @@ -44,11 +44,11 @@ Forge::str(const Raul::Atom& atom) } else if (atom.type() == Bool) { ss << (atom.get<int32_t>() ? "true" : "false"); } else if (atom.type() == URI) { - ss << "<" << atom.get<const char*>() << ">"; + ss << "<" << atom.ptr<const char*>() << ">"; } else if (atom.type() == URID) { ss << "<" << _map.unmap_uri(atom.get<int32_t>()) << ">"; } else if (atom.type() == String) { - ss << "\"" << atom.get<const char*>() << "\""; + ss << "\"" << atom.ptr<const char*>() << "\""; } return ss.str(); } |