# std: use reader.skipBytes to avoid infinite loop in writeFileAllUnseekable · gitcafe/zig

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

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

Visibility: public

Requested revision: 8695b9fbe781ea030bafb4f6272202b9115ba46b

Requested commit: 8695b9fbe781ea030bafb4f6272202b9115ba46b

Commit: 8695b9fbe781ea030bafb4f6272202b9115ba46b

Tree: 0438310f2c5a1c77e9bfc1532e315a7a8c2bf581

Author: daurnimator

Committer: Andrew Kelley

## Message

```
std: use reader.skipBytes to avoid infinite loop in writeFileAllUnseekable

skipBytes correctly handles EOF for us

```

## Parents

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

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