cocaine/cocaine-core — pull request #141 by 3Hren (2014-11-20 15:52:18+00:00)
Title: [Bug Fix] Fix improper demangling.

According to the documentation this function returns a pointer to the start of the NUL-terminated demangled name, which is perfectly converts to std::string (because of \0).
On the other side length parameter is treated as allocated buffer size - this one is completely uninteresting for us.

If demangling fails for some reasons we just return string containing information about. It's okay, because that string is only informative anyway.