[Lldb-commits] [lldb] r348542 - [pecoff] Use PATH_MAX instead of MAX_PATH

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 6 15:22:46 PST 2018


Author: stella.stamenova
Date: Thu Dec  6 15:22:46 2018
New Revision: 348542

URL: http://llvm.org/viewvc/llvm-project?rev=348542&view=rev
Log:
[pecoff] Use PATH_MAX instead of MAX_PATH

PATH_MAX is defined on all platforms while MAX_PATH is Windows-specific

Modified:
    lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp?rev=348542&r1=348541&r2=348542&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp Thu Dec  6 15:22:46 2018
@@ -889,7 +889,7 @@ uint32_t ObjectFilePECOFF::ParseDependen
     // At this moment we only have the base name of the DLL. The full path can
     // only be seen after the dynamic loading.  Our best guess is Try to get it
     // with the help of the object file's directory.
-    llvm::SmallString<MAX_PATH> dll_fullpath;
+    llvm::SmallString<PATH_MAX> dll_fullpath;
     FileSpec dll_specs(dll_name);
     dll_specs.GetDirectory().SetString(m_file.GetDirectory().GetCString());
 




More information about the lldb-commits mailing list