diff --git a/src/framework/core/binarytree.cpp b/src/framework/core/binarytree.cpp index c4b09f8f..730142f5 100644 --- a/src/framework/core/binarytree.cpp +++ b/src/framework/core/binarytree.cpp @@ -153,14 +153,8 @@ uint64 BinaryTree::getU64() std::string BinaryTree::getString() { - unserialize(); uint16 len = getU16(); - if(m_pos+len > m_buffer.size()) - stdext::throw_exception("BinaryTree: getString failed: string length exceeded buffer size."); - - std::string ret((char *)&m_buffer[m_pos], len); - m_pos += len; - return ret; + return getString(len); } std::string BinaryTree::getString(uint16 len)