As the title suggests, snprintf replaces all usages of sprintf, which can be dangerous because it can potentially output more characters than can fit in the allocation size of the buffer string. The change suppresses a gcc compiler warning (which was the main motivation for the PR).
Brief summary of changes
As the title suggests,
snprintf
replaces all usages ofsprintf
, which can be dangerous because it can potentially output more characters than can fit in the allocation size of the buffer string. The change suppresses agcc
compiler warning (which was the main motivation for the PR).Testing I've completed
Looking for feedback on...
CHANGELOG.md (choose one)
This change is