diff --git a/aegisub/src/dialog_log.cpp b/aegisub/src/dialog_log.cpp index 5aa6ddfa1..e84ef314a 100644 --- a/aegisub/src/dialog_log.cpp +++ b/aegisub/src/dialog_log.cpp @@ -119,7 +119,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) { sm->file, sm->func, sm->line, - sm->message); + std::string(sm->message, sm->len)); #endif text_ctrl->AppendText(log); }