diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 5d0dc1126d9..e49f49f2621 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -823,7 +823,7 @@ protected: } else { result.AppendErrorWithFormat( "failed to create a value object for: (%s) %s\n", - view_as_type_cstr, name_strm.GetString().c_str()); + view_as_type_cstr, name_strm.GetData()); result.SetStatus(eReturnStatusFailed); return false; } @@ -1577,7 +1577,7 @@ protected: if (!buffer.GetString().empty()) { Error error; - if (process->WriteMemory(addr, buffer.GetString().c_str(), + if (process->WriteMemory(addr, buffer.GetString().data(), buffer.GetString().size(), error) == buffer.GetString().size()) return true; |

