diff --git a/src/terminfo/Source.zig b/src/terminfo/Source.zig index 2190e0210..82bb7f1fc 100644 --- a/src/terminfo/Source.zig +++ b/src/terminfo/Source.zig @@ -86,7 +86,7 @@ pub fn xtgettcapMap(comptime self: Source) type { .boolean => "", .string => |v| v, .numeric => |v| numeric: { - var buf: [1024]u8 = undefined; + var buf: [10]u8 = undefined; const num_len = std.fmt.formatIntBuf(&buf, v, 10, .upper, .{}); break :numeric buf[0..num_len]; },