Przeglądaj źródła

Support longer output (up to 1mb)

Luna Stadler 4 lat temu
rodzic
commit
8e4040d046
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      zig/sdl/hello_sdl.zig

+ 1 - 1
zig/sdl/hello_sdl.zig

@ -218,7 +218,7 @@ fn runCommand(raw_cmd: []const u8, allocator: *std.mem.Allocator) ![]const u8 {
218 218
    for (argv) |arg| {
219 219
        std.debug.print("'{s}' ", .{arg});
220 220
    }
221
    const result = try std.ChildProcess.exec(.{ .allocator = allocator, .argv = argv });
221
    const result = try std.ChildProcess.exec(.{ .allocator = allocator, .argv = argv, .max_output_bytes = 1024 * 1024 });
222 222
    std.debug.print("stderr: '{s}'\n", .{result.stderr});
223 223
    defer {
224 224
        // FIXME: allocator.free(result.stdout);