summaryrefslogtreecommitdiff
path: root/databuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'databuffer.cpp')
-rw-r--r--databuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/databuffer.cpp b/databuffer.cpp
index 1699ebb6..24b20856 100644
--- a/databuffer.cpp
+++ b/databuffer.cpp
@@ -190,9 +190,9 @@ const uint8_t& DataBuffer::operator[](size_t offset) const
}
-string DataBuffer::ToEscapedString() const
+string DataBuffer::ToEscapedString(bool nullTerminates) const
{
- char* str = BNDataBufferToEscapedString(m_buffer);
+ char* str = BNDataBufferToEscapedString(m_buffer, nullTerminates);
string result = str;
BNFreeString(str);
return result;