# Improve ensureTotalCapacity call in ChildProcess.collectOutputWindows · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/224d4de747d02f4b7add6a7e18512467b6d33569)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 224d4de747d02f4b7add6a7e18512467b6d33569

Requested commit: 224d4de747d02f4b7add6a7e18512467b6d33569

Commit: 224d4de747d02f4b7add6a7e18512467b6d33569

Tree: 8e16693234c535d50edbc7217ea6a84b97b501b3

Author: Ryan Liptak

Committer: Isaac Freund

## Message

```
Improve ensureTotalCapacity call in ChildProcess.collectOutputWindows

Take current len and max_output_bytes into account instead of unconditionally using bump_amt

```

## Parents

- [59f5053beda7087a73983835e9f7e00dc3143d59](https://git.cafe/gitcafe/zig/commit/59f5053beda7087a73983835e9f7e00dc3143d59?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/224d4de747d02f4b7add6a7e18512467b6d33569?format=markdown)
