Skip to content

fix the size parameter of snprintf and vsnprintf#7097

Merged
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:snprintf_size
Feb 13, 2026
Merged

fix the size parameter of snprintf and vsnprintf#7097
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:snprintf_size

Conversation

@Goober5000
Copy link
Contributor

These functions accept a size parameter that includes the null terminator, so tweak function calls accordingly.

These functions accept a size parameter that *includes* the null terminator, so tweak function calls accordingly.
@Goober5000 Goober5000 added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle labels Oct 24, 2025
@Goober5000 Goober5000 merged commit c428a22 into scp-fs2open:master Feb 13, 2026
20 checks passed
@Goober5000 Goober5000 deleted the snprintf_size branch February 13, 2026 05:50
@Goober5000 Goober5000 removed the Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle label Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants