Loading lldb/source/Host/posix/HostInfoPosix.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ HostInfoPosix::ComputePythonDirectory(FileSpec &file_spec) llvm::SmallString<256> python_version_dir; llvm::raw_svector_ostream os(python_version_dir); os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages"; os.flush(); // We may get our string truncated. Should we protect this with an assert? ::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1); Loading Loading
lldb/source/Host/posix/HostInfoPosix.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ HostInfoPosix::ComputePythonDirectory(FileSpec &file_spec) llvm::SmallString<256> python_version_dir; llvm::raw_svector_ostream os(python_version_dir); os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages"; os.flush(); // We may get our string truncated. Should we protect this with an assert? ::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1); Loading