]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/gpasswd: Use correct preprocessor definition
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 19 Jan 2025 20:28:25 +0000 (21:28 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 21 Jan 2025 15:24:26 +0000 (16:24 +0100)
commit12117b2faab3d0c47799f77e0deb9260c497f1bd
treebb63d8f5092050ffabecaba9e61573839ac4dd92
parent6b4bbbeecd676c9423f82658bb3a8f6990218e8d
src/gpasswd: Use correct preprocessor definition

Use PASS_MAX + 1 instead of BUFSIZ to clarify where this size comes
from. Technically, PASS_MAX is BUFSIZ - 1 so this is a no-op change.

Just make sure that the size of pass stays in sync with agetpass.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/gpasswd.c