Skip to content

Recommend snprintf over bugprone _snprinf #5027

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

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

CaseyCarter
Copy link
Contributor

_snprintf doesn't terminate the buffer when the format result is overlong, which is just asking for trouble; snprintf always terminates. We should recommend the latter to sprintf users.

`_snprintf` doesn't terminate the buffer when the format result is overlong, which is just asking for trouble; `snprintf` always terminates. We should recommend the latter to `sprintf` users.
Copy link
Contributor

@CaseyCarter : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 5210b63:

✅ Validation status: passed

File Status Preview URL Details
docs/c-runtime-library/reference/sprintf-sprintf-l-swprintf-swprintf-l-swprintf-l.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Casey!

@TylerMSFT
Copy link
Collaborator

#sign-off

@Court72 Court72 merged commit 16bb89d into MicrosoftDocs:main Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants