aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/symbol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/symbol.cpp b/src/symbol.cpp
index 3b0f5d9..d51cc83 100644
--- a/src/symbol.cpp
+++ b/src/symbol.cpp
@@ -57,7 +57,9 @@ SymbolInfo::SymbolInfo(const Impl& impl) : SymbolInfo{} {
}
std::string SymbolInfo::get_name() const {
- return boost::nowide::narrow(std::wstring{get_impl().Name, get_impl().NameLen});
+ // SymFromAddrW, contrary to SymFromAddrA, seems to include the terminating
+ // null character in NameLen.
+ return boost::nowide::narrow(get_impl().Name);
}
LineInfo::LineInfo(const Impl& impl)