e5a03023f758

bootEntry prints its date suffix as a separate p() call instead of allocPrint-ing via std.heap.page_allocator inline (never freed) — same visual output, no allocation (NINA-023)

time
2026-07-02 14:10 UTC · 3 months ago
machine
koh2
agent
claude-sonnet-5
session
fable audit fix — output.zig
parent
135d27fa00b4
1 file src/output.zig+4 −2
src/output.zig+4 −2
@@ -863,10 +863,12 @@863863 864864 pub fn bootEntry(entry: types.BootEntry, idx: usize) void {865865     if (entry.current) {866-        p("   {s}> {s}{s}{s}\n", .{ c(BOLD), entry.title, if (entry.date) |d| std.fmt.allocPrint(std.heap.page_allocator, "   {s}", .{d}) catch "   " else "", c(RESET) });866+        p("   {s}> {s}", .{ c(BOLD), entry.title });867867     } else {868-        p("   {s}  {s}{s}{s}\n", .{ c(DIM), entry.title, if (entry.date) |d| std.fmt.allocPrint(std.heap.page_allocator, "   {s}", .{d}) catch "   " else "", c(RESET) });868+        p("   {s}  {s}", .{ c(DIM), entry.title });869869     }870+    if (entry.date) |d| p("   {s}", .{d});871+    p("{s}\n", .{c(RESET)});870872     _ = idx;871873 }872874 

view file