diff --git a/source/StealConsole.cpp b/source/StealConsole.cpp index 21217b8..64812f9 100644 --- a/source/StealConsole.cpp +++ b/source/StealConsole.cpp @@ -13,5 +13,12 @@ StealConsole::~StealConsole() { // Do Nothing Here } -std::string StealConsole::GetStdout() { return this->stolen_stdout.str(); } +std::string StealConsole::GetStdout() { + if (this->stolen_stdout.str().length() < 400) { + return this->stolen_stdout.str(); + } else { + return this->stolen_stdout.str().substr(stolen_stdout.str().length() - 400); + } + return ""; +} } // namespace RenderD7 \ No newline at end of file