diff options
author | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
commit | 8e16c9ed1c43310b027b5769044fd22a21a97ec1 (patch) | |
tree | 273eff5ddbe16c8f718ffd47934f8b64b3aecb7a /Source/kwsys/SystemInformation.cxx | |
parent | a89ae726f4cd7cb3c3e9d318f478e6ef90b0df60 (diff) | |
parent | 00ccc0f47c5ca1f640d1fe34eac135ac9a3adb36 (diff) | |
download | CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.zip CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.gz CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-09-03 (0da908d4)
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 12f9139..f2bf85f 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -1356,14 +1356,12 @@ std::string SymbolProperties::Demangle(const char* symbol) const std::string result = safes(symbol); # if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE) int status = 0; - size_t bufferLen = 1024; - char* buffer = (char*)malloc(1024); char* demangledSymbol = - abi::__cxa_demangle(symbol, buffer, &bufferLen, &status); + abi::__cxa_demangle(symbol, nullptr, nullptr, &status); if (!status) { result = demangledSymbol; } - free(buffer); + free(demangledSymbol); # else (void)symbol; # endif |