From 533bb4cd1c22a48c4ca0b36c153fd6d7d4a79ef7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 10 Dec 2013 10:38:46 -0800 Subject: [PATCH] Fix crash when writing crash logs --- aegisub/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index d2278b831..e811f642e 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -324,9 +324,9 @@ StackWalker::StackWalker(std::string const& cause) void StackWalker::OnStackFrame(wxStackFrame const& frame) { if (!fp.good()) return; - fp << boost::format("%03u - %p: %s") % frame.GetLevel() % frame.GetAddress(); + fp << boost::format("%03u - %p: %s") % frame.GetLevel() % frame.GetAddress() % frame.GetName().utf8_str().data(); if (frame.HasSourceLocation()) - fp << boost::format(" on %s:%u") % frame.GetFileName(), frame.GetLine(); + fp << boost::format(" on %s:%u") % frame.GetFileName().utf8_str().data(), frame.GetLine(); fp << "\n"; }