kravietz / pam_tacplus

TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
GNU Lesser General Public License v3.0
132 stars 102 forks source link

Fix format specifier errors for 32-bit compilation #182

Closed sbrahul closed 2 years ago

sbrahul commented 2 years ago

Variables of type size_t were using %lu as format specifier. When compiled using 32-bit compiler, %lu is expecting unsigned long, but size_t translates to unsigned int. So, replacing it with %zu and %zd (for ssize_t) as per c99 standard.

kravietz commented 2 years ago

@sbrahul Thank you!