# tar: use scratch buffer for file names · gitcafe/zig

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

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

Visibility: public

Requested revision: 6bfa7bf197634272f30d864a4563f7cddbaf55c0

Requested commit: 6bfa7bf197634272f30d864a4563f7cddbaf55c0

Commit: 6bfa7bf197634272f30d864a4563f7cddbaf55c0

Tree: 0e6f0998ee2fe2d774b7344a648a6bc896e82b64

Author: Igor Anić

Committer: Andrew Kelley

## Message

```
tar: use scratch buffer for file names

That makes names strings stable during the iteration. Otherwise string
buffers can be overwritten while reading file content.

```

## Parents

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

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