# Windows: Fix iterator name buffer size not handling all possible file name components · gitcafe/zig

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

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

Visibility: public

Requested revision: c6ff1a71601f42dab5c8607397b28b34085134d8

Requested commit: c6ff1a71601f42dab5c8607397b28b34085134d8

Commit: c6ff1a71601f42dab5c8607397b28b34085134d8

Tree: 1b99e39173bcb2a9ce7d8f9318cec772224525dd

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Windows: Fix iterator name buffer size not handling all possible file name components

Each u16 within a file name component can be encoded as up to 3 UTF-8 bytes, so we need to use MAX_NAME_BYTES to account for all possible UTF-8 encoded names.

Fixes #8268

```

## Parents

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

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