Skip to content

Commit 659e918

Browse files
refactor(cli): increase stdout and stderr buffer size
1 parent 818cb4c commit 659e918

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cli/cli.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ fn compileCurrentExercise(self: *CLI) !void {
154154

155155
self.current_exercise_stdout.clearAndFree(self.allocator);
156156

157-
try process.collectOutput(self.allocator, &self.current_exercise_stdout, &self.current_exercise_stderr, 4096);
157+
// FIX: dynamically allocate max output bytes for stdout
158+
try process.collectOutput(self.allocator, &self.current_exercise_stdout, &self.current_exercise_stderr, 65_536); // 16 bit output
158159
const PROCESS_STATUS = try process.wait();
159160

160161
if (PROCESS_STATUS.Exited == 0) {

0 commit comments

Comments
 (0)