]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/string/sprintf/: snprintf_(): Use ssize_t instead of size_t in $2
authorAlejandro Colomar <alx@kernel.org>
Sat, 8 Feb 2025 15:19:02 +0000 (16:19 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Fri, 15 May 2026 10:06:49 +0000 (12:06 +0200)
commitef4334379a6c8d9a200f0d4ea3f403f379484df9
tree6a2af914f54ef27a875f1c02c2a631f0c3646fb8
parent470cfa23c74694918396e603c78381f27c2be99e
lib/string/sprintf/: snprintf_(): Use ssize_t instead of size_t in $2

vsnprintf(3) returns an int.  By using ssize_t, which is also signed, we
avoid the need for a cast.

Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/string/sprintf/snprintf.c
lib/string/sprintf/snprintf.h