diff --git a/BeefLibs/corlib/src/Diagnostics/Debug.bf b/BeefLibs/corlib/src/Diagnostics/Debug.bf index 7ab33151..dd22b0ab 100644 --- a/BeefLibs/corlib/src/Diagnostics/Debug.bf +++ b/BeefLibs/corlib/src/Diagnostics/Debug.bf @@ -70,7 +70,7 @@ namespace System.Diagnostics public static void WriteLine(StringView line) { - String lineStr = scope String(Math.Min(line.Length, 4096)); + String lineStr = scope String(Math.Min(line.Length + 1, 4096)); lineStr.Append(line); lineStr.Append('\n'); Write(lineStr.Ptr, lineStr.Length);