Fixed some strncat/strlcat uses.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156264 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Host/macosx/Symbols.cpp b/source/Host/macosx/Symbols.cpp
index 1509b71..bc93771 100644
--- a/source/Host/macosx/Symbols.cpp
+++ b/source/Host/macosx/Symbols.cpp
@@ -483,8 +483,8 @@
if (strcasestr(path, ".dSYM/Contents/Resources/DWARF") == NULL)
{
size_t obj_file_path_length = strlen(path);
- strncat(path, ".dSYM/Contents/Resources/DWARF/", sizeof(path));
- strncat(path, exec_fspec->GetFilename().AsCString(), sizeof(path));
+ strlcat(path, ".dSYM/Contents/Resources/DWARF/", sizeof(path));
+ strlcat(path, exec_fspec->GetFilename().AsCString(), sizeof(path));
dsym_fspec.SetFile(path, false);
@@ -503,8 +503,8 @@
if (next_slash != NULL)
{
*next_slash = '\0';
- strncat(path, ".dSYM/Contents/Resources/DWARF/", sizeof(path));
- strncat(path, exec_fspec->GetFilename().AsCString(), sizeof(path));
+ strlcat(path, ".dSYM/Contents/Resources/DWARF/", sizeof(path));
+ strlcat(path, exec_fspec->GetFilename().AsCString(), sizeof(path));
dsym_fspec.SetFile(path, false);
if (dsym_fspec.Exists() && FileAtPathContainsArchAndUUID (dsym_fspec, module_spec.GetArchitecturePtr(), module_spec.GetUUIDPtr()))
return true;