summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2014-03-12 10:53:50 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2014-03-12 10:53:50 +0000
commit487767cfc8fc74a61dc593ff7e96120e037ab7f5 (patch)
treef0cd2f7b42a5e60d8df097e67453b0677f1a8330 /lldb
parentb4d550a2ca4207d6fa8e857155476738e1591b7d (diff)
downloadbcm5719-llvm-487767cfc8fc74a61dc593ff7e96120e037ab7f5.tar.gz
bcm5719-llvm-487767cfc8fc74a61dc593ff7e96120e037ab7f5.zip
Replace some Windows specific string functions with std::string.
llvm-svn: 203654
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Host/common/FileSpec.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp
index 48f1ac78d92..d4634ece83f 100644
--- a/lldb/source/Host/common/FileSpec.cpp
+++ b/lldb/source/Host/common/FileSpec.cpp
@@ -936,12 +936,11 @@ FileSpec::EnumerateDirectory
if (dir_path && dir_path[0])
{
#if _WIN32
- char szDir[MAX_PATH];
- strcpy_s(szDir, MAX_PATH, dir_path);
- strcat_s(szDir, MAX_PATH, "\\*");
+ std::string szDir(dir_path);
+ szDir += "\\*";
WIN32_FIND_DATA ffd;
- HANDLE hFind = FindFirstFile(szDir, &ffd);
+ HANDLE hFind = FindFirstFile(szDir.c_str(), &ffd);
if (hFind == INVALID_HANDLE_VALUE)
{
OpenPOWER on IntegriCloud