diff options
Diffstat (limited to 'lldb/source/Core/DataEncoder.cpp')
-rw-r--r-- | lldb/source/Core/DataEncoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/DataEncoder.cpp b/lldb/source/Core/DataEncoder.cpp index d0740af8f47..933cc3eb23b 100644 --- a/lldb/source/Core/DataEncoder.cpp +++ b/lldb/source/Core/DataEncoder.cpp @@ -356,6 +356,6 @@ uint32_t DataEncoder::PutCString (uint32_t offset, const char *cstr) { if (cstr) - return PutData (offset, cstr, strlen(cstr)); + return PutData (offset, cstr, strlen(cstr) + 1); return UINT32_MAX; } |