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

stb_image_write: Fix Apple Clang Warning #1724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YGXXD
Copy link

@YGXXD YGXXD commented Dec 4, 2024

image Apple Clang suggests using the safer function snprintf instead of sprintf. And I tried to fix this warning.

@YGXXD YGXXD changed the title Fix Clang Warning stb_image_write: Fix Apple Clang Warning Dec 4, 2024
@nothings
Copy link
Owner

nothings commented Dec 4, 2024

Proposed implementation isn't portable to all supported compilers/platforms.

@YGXXD
Copy link
Author

YGXXD commented Dec 4, 2024

You're right, snprintf is the standard after c99

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

Successfully merging this pull request may close these issues.

2 participants