]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/useradd: avoid usage of sprintf
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 11 Dec 2023 16:13:43 +0000 (17:13 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 14 Dec 2023 13:40:40 +0000 (07:40 -0600)
commit0d7cb003b73edd8ce1e0b5c69c95a0ed09c40c40
tree073878e4aeeae5e9640296e57ad357e4dadd7ee5
parent95a8de2a0aa490e9aeb1bf87ddf5833f2ae8a567
src/useradd: avoid usage of sprintf

sprintf(3) does not take the destination buffer into account. Although
the destination in these case is large enough, sprintf(3) indicates a
code smell.

Use the xasprintf() wrapper.
src/useradd.c