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/Host/common/Host.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/Host/common/Host.cpp')
-rw-r--r-- | lldb/source/Host/common/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 55d174c9057..62b936aadef 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -496,7 +496,7 @@ Status Host::RunShellCommand(const Args &args, const FileSpec &working_dir, if (working_dir) launch_info.SetWorkingDirectory(working_dir); - llvm::SmallString<PATH_MAX> output_file_path; + llvm::SmallString<64> output_file_path; if (command_output_ptr) { // Create a temporary file to get the stdout/stderr and redirect the output |