forked from mia/Aegisub
Use std::string on osx/unix as well as osx doesn't have strndup.
Originally committed to SVN as r4735.
This commit is contained in:
parent
0b4092b602
commit
9f1b1f1cad
1 changed files with 3 additions and 2 deletions
|
@ -40,13 +40,14 @@
|
|||
#include "config.h"
|
||||
|
||||
#ifndef AGI_PRE
|
||||
#include <string>
|
||||
|
||||
#include <wx/button.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/stattext.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <time.h>
|
||||
#include "dialog_log.h"
|
||||
|
@ -109,7 +110,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) {
|
|||
sm->file,
|
||||
sm->func,
|
||||
sm->line,
|
||||
strndup(sm->message, sm->len));
|
||||
std::string(sm->message, sm->len));
|
||||
#else
|
||||
wxString log = wxString::Format("%c %-6ld <%-25s> [%s:%s:%d] %s\n",
|
||||
agi::log::Severity_ID[sm->severity],
|
||||
|
|
Loading…
Reference in a new issue