From 4724e0dcb412137df1e9714bfd330709b60615b8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 27 Sep 2023 14:35:22 -0700 Subject: [PATCH] terminfo: numeric comptime buffer only needs to be 10 bytes --- src/terminfo/Source.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; },