]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/: Use ATTR_STRING() on stpecpy() and strtcpy()
authorAlejandro Colomar <alx@kernel.org>
Sun, 26 Nov 2023 17:52:56 +0000 (18:52 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 4 Dec 2023 11:22:47 +0000 (12:22 +0100)
commit93a5c47c2cb91cb79b3ae991d3ab70c6cba9fa86
tree14b3af64e526ac4e2d2cd034f45fe4506d3defc8
parenta61cf0068bf8b56dec5a1d42c9e9701199fcbb0f
lib/: Use ATTR_STRING() on stpecpy() and strtcpy()

These functions consume a source string.  Document that.  There's no way
to mark that they also produce a string in dst, though.  That will be up
to the static analyzer to guess.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/string/stpecpy.h
lib/string/strtcpy.h