1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-19 16:52:17 +01:00

snprintf returns an int, not a size_t. reported by clang.

This commit is contained in:
Fredrik Thulin 2012-02-06 11:31:23 +01:00
parent 5e7dd56c2f
commit dc9146ffcb

View File

@ -841,7 +841,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
{
const char *query_template = "Yubikey for `%s': ";
size_t len = strlen (query_template) + strlen (user);
size_t wrote;
int wrote;
msg[0].msg = malloc (len);
if (!msg[0].msg)