diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-11 14:59:54 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-11-13 13:24:08 +0000 |
commit | a85e6f66ea60f0fa18559bff957e0fa43f31d5f5 (patch) | |
tree | e78a4dff4e67842d8017250a2425dd8f3fb6da27 /libpam/pam_modutil_getpwuid.c | |
parent | 669bd88783d9799a8b9303006e40bab324dcc42e (diff) | |
download | pam-a85e6f66ea60f0fa18559bff957e0fa43f31d5f5.tar.gz pam-a85e6f66ea60f0fa18559bff957e0fa43f31d5f5.tar.bz2 pam-a85e6f66ea60f0fa18559bff957e0fa43f31d5f5.zip |
libpam: use printf type annotation for size_t
Several debug messages were using %u (unsigned int) instead of the
contextually correct %zu (size_t AKA long unsigned int), potentially
causing silent truncation of the printed value.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'libpam/pam_modutil_getpwuid.c')
-rw-r--r-- | libpam/pam_modutil_getpwuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_modutil_getpwuid.c b/libpam/pam_modutil_getpwuid.c index 3a435937..cdd196ee 100644 --- a/libpam/pam_modutil_getpwuid.c +++ b/libpam/pam_modutil_getpwuid.c @@ -119,7 +119,7 @@ pam_modutil_getpwuid(pam_handle_t *pamh, uid_t uid) } while (length < PWD_ABSURD_PWD_LENGTH); - D(("pwd structure took %u bytes or so of memory", + D(("pwd structure took %zu bytes or so of memory", length+sizeof(struct passwd))); free(buffer); |