# fixed handling of \[\*\]u8 when no format specifier is set · gitcafe/zig

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

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

Visibility: public

Requested revision: fa955f0024bc1e63200f6c6e3d22cf88dc6a65a5

Requested commit: fa955f0024bc1e63200f6c6e3d22cf88dc6a65a5

Commit: fa955f0024bc1e63200f6c6e3d22cf88dc6a65a5

Tree: 40121670ba4c0ad573029ed678fda0415d0aaede

Author: tgschultz

Committer: GitHub

## Message

```
fixed handling of [*]u8 when no format specifier is set

If fmt was called on with a [*]u8 or [*]const u8 argument, but the fmt string did not specify 's' to treat it as a string, it produced a compile error due to accessing index 1 of a 0 length slice.
```

## Parents

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

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