Replace sprintf() with snprintf(), strcpy() with strncpy(), and strcat() with strncat() wherever feasible.
Some of these changes might be a little overzealous. Not all uses of the unsafe functions are necessarily unsafe. Feel free to cherrypick/ignore as needed.
Contribution description
Replace
sprintf()
withsnprintf()
,strcpy()
withstrncpy()
, andstrcat()
withstrncat()
wherever feasible.Some of these changes might be a little overzealous. Not all uses of the unsafe functions are necessarily unsafe. Feel free to cherrypick/ignore as needed.
Issues/PRs references
Changes follow the same style as #337.