# stage1/codegen: replace sprintf\(\) with snprintf\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f3333a56e8452c16ad30da99f8e4a62a16e58a03

Requested commit: f3333a56e8452c16ad30da99f8e4a62a16e58a03

Commit: f3333a56e8452c16ad30da99f8e4a62a16e58a03

Tree: 84fe45809a5f7fa7955437fe10f73ffc6831c578

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
stage1/codegen: replace sprintf() with snprintf()

Calling sprintf() is now triggering an error on Xcode 14.

Using snprintf() is generally not a bad idea anyway.

```

## Parents

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

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