aboutsummaryrefslogtreecommitdiff
path: root/libpam/pam_modutil_getgrgid.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-11 14:59:54 +0100
committerDmitry V. Levin <ldv@strace.io>2023-11-13 13:24:08 +0000
commita85e6f66ea60f0fa18559bff957e0fa43f31d5f5 (patch)
treee78a4dff4e67842d8017250a2425dd8f3fb6da27 /libpam/pam_modutil_getgrgid.c
parent669bd88783d9799a8b9303006e40bab324dcc42e (diff)
downloadpam-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_getgrgid.c')
-rw-r--r--libpam/pam_modutil_getgrgid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_modutil_getgrgid.c b/libpam/pam_modutil_getgrgid.c
index 386d6f4b..93a59633 100644
--- a/libpam/pam_modutil_getgrgid.c
+++ b/libpam/pam_modutil_getgrgid.c
@@ -119,7 +119,7 @@ pam_modutil_getgrgid(pam_handle_t *pamh, gid_t gid)
} while (length < PWD_ABSURD_PWD_LENGTH);
- D(("grp structure took %u bytes or so of memory",
+ D(("grp structure took %zu bytes or so of memory",
length+sizeof(struct group)));
free(buffer);