Forgot to write out the NULL terminator when putting C string value into

a data using DataEncoder.

Added DataEncoder to the lldb-forward.h file.

llvm-svn: 138950
This commit is contained in:
Greg Clayton
2011-09-01 18:13:54 +00:00
parent 9482865f2a
commit f39c67685b
2 changed files with 2 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ class ConstString;
class DWARFCallFrameInfo;
class DWARFExpression;
class DataBuffer;
class DataEncoder;
class DataExtractor;
class Debugger;
class Declaration;

View File

@@ -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;
}