╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────╮ │1 const std = @import("std"); │ │2 +const evt = @import("../../event.zig");│ │3 const ui = @import("../../ui.zig"); │ │4 const inp = @import("../input.zig"); │ │5 const xit = @import("xit"); │ ╰──────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │73 │ │74 // the user's name (local mode has no user pages to link to) │ │75 if (!session.data.is_local) { │ │75 - const text = try std.fmt.allocPrint(aa, "{s}/", .{data.owner_name}); │ │76 + var text_buf: [evt.User.name_max_len + 1]u8 = undefined; │ │77 + const text = try std.fmt.bufPrint(&text_buf, "{s}/", .{data.owner_name}); │ │78 const link = try std.fmt.allocPrint(aa, "a:/user/{s}", .{data.owner_name}); │ │79 │ │80 var text_box = try wgt.TextBox(ui.Widget).init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯