diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
commit | b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1 (patch) | |
tree | 6845b2a664e82d83cb11cd4e30fd2b4c100f774e /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | 53f0d41dc4879cf79bea8acc4aa87064a085d05c (diff) | |
download | bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.tar.gz bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.zip |
Do not use PATH_MAX with SmallString
Summary: Instead use a more reasonable value to start and rely on the fact that SmallString will resize if necessary.
Reviewers: labath, asmith
Reviewed By: labath
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D55457
llvm-svn: 348775
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 2a48daaa39f..fc442f5f4d5 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1038,7 +1038,7 @@ protected: Module *exe_module = target->GetExecutableModulePointer(); if (exe_module) { m_options.launch_info.GetExecutableFile() = exe_module->GetFileSpec(); - llvm::SmallString<PATH_MAX> exe_path; + llvm::SmallString<128> exe_path; m_options.launch_info.GetExecutableFile().GetPath(exe_path); if (!exe_path.empty()) m_options.launch_info.GetArguments().AppendArgument(exe_path); |