From 30d3928e0f0b422828c9f9cb1f3790b6ef047b0f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 16 Dec 2023 14:04:58 -0800 Subject: [PATCH] termio: allocate initial capacity more accurately --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index f54ac5e77..863a4a86f 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -800,7 +800,7 @@ const Subprocess = struct { // Build our args list const args = args: { - const cap = 6; // the most we'll use on macOS + const cap = 9; // the most we'll ever use var args = try std.ArrayList([]const u8).initCapacity(alloc, cap); defer args.deinit();