We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9edca commit 0515c6dCopy full SHA for 0515c6d
lldb/tools/lldb-dap/LLDBUtils.cpp
@@ -247,8 +247,8 @@ std::string GetSBFileSpecPath(const lldb::SBFileSpec &file_spec) {
247
const auto directory_length = ::strlen(file_spec.GetDirectory());
248
const auto file_name_length = ::strlen(file_spec.GetFilename());
249
250
- std::string path(directory_length + file_name_length + 2, '\0');
251
- file_spec.GetPath(path.data(), path.length());
+ std::string path(directory_length + file_name_length + 1, '\0');
+ file_spec.GetPath(path.data(), path.length() + 1);
252
return path;
253
}
254
0 commit comments