Fix truncation of dump_command_log console command output

This commit is contained in:
Jonathan G Rennison
2023-08-04 22:19:54 +01:00
parent bdbc631e6c
commit 731a79b224
4 changed files with 13 additions and 9 deletions

View File

@@ -2576,9 +2576,11 @@ DEF_CONSOLE_CMD(ConDumpCommandLog)
return true;
}
char buffer[32768];
DumpCommandLog(buffer, lastof(buffer));
PrintLineByLine(buffer);
char buffer[2048];
DumpCommandLog(buffer, lastof(buffer), [&](char *current) -> char * {
PrintLineByLine(buffer);
return buffer;
});
return true;
}