Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibly incorrect function signatures in stb_sprintf #1621

Open
apache-hb opened this issue Mar 11, 2024 · 0 comments
Open

possibly incorrect function signatures in stb_sprintf #1621

apache-hb opened this issue Mar 11, 2024 · 0 comments

Comments

@apache-hb
Copy link

Describe the bug
stbsp_vsnprintf and stbsp_snprintf have incorrect function signatures according to the C specification.

According to n3096 7.23.6.5 and 7.23.6.12 the second parameter to [v]snprintf should be of type size_t, in stb_sprintf it is int. Is this an intentional difference or should these be size_t's?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant