diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-11 15:02:10 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-11-13 13:24:08 +0000 |
commit | f171d126299d70df6ce6134c4d3928f21316f99b (patch) | |
tree | 2c87562c4ae7bdf078c080cccdf1856f69b5ae78 /libpam/pam_item.c | |
parent | a85e6f66ea60f0fa18559bff957e0fa43f31d5f5 (diff) | |
download | pam-f171d126299d70df6ce6134c4d3928f21316f99b.tar.gz pam-f171d126299d70df6ce6134c4d3928f21316f99b.tar.bz2 pam-f171d126299d70df6ce6134c4d3928f21316f99b.zip |
libpam: ensure correct argument type when printing debug output
While the underlying type for setting the TTY was correct, the
additional output neglected to include the type cast necessary when
actually printing the data. This is rectified here.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'libpam/pam_item.c')
-rw-r--r-- | libpam/pam_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_item.c b/libpam/pam_item.c index b504d598..a27c680b 100644 --- a/libpam/pam_item.c +++ b/libpam/pam_item.c @@ -61,7 +61,7 @@ int pam_set_item (pam_handle_t *pamh, int item_type, const void *item) break; case PAM_TTY: - D(("setting tty to %s", item)); + D(("setting tty to %s", (const char *)item)); TRY_SET(pamh->tty, item); break; |