Fix truncation of GetDebugString output string

See: #525
This commit is contained in:
Jonathan G Rennison
2023-06-01 19:31:55 +01:00
parent f7964cb3aa
commit 18a79a35d0
3 changed files with 7 additions and 16 deletions

View File

@@ -1774,7 +1774,7 @@ DEF_CONSOLE_CMD(ConDebugLevel)
if (argc > 2) return false;
if (argc == 1) {
IConsolePrintF(CC_DEFAULT, "Current debug-level: '%s'", GetDebugString());
IConsolePrintF(CC_DEFAULT, "Current debug-level: '%s'", GetDebugString().c_str());
} else {
SetDebugString(argv[1], [](const char *err) { IConsolePrint(CC_ERROR, err); });
}