mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-20 12:54:16 +01:00
pam_yubico.c: Use snprintf() instead of sprintf()
This commit is contained in:
parent
3339cd2864
commit
f94095879a
@ -308,7 +308,7 @@ authorize_user_token_ldap (struct cfg *cfg,
|
|||||||
DBG ("Failed allocating %zu bytes", i);
|
DBG ("Failed allocating %zu bytes", i);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
sprintf (find, "%s=%s,%s", cfg->user_attr, user, cfg->ldapdn);
|
snprintf (find, i, "%s=%s,%s", cfg->user_attr, user, cfg->ldapdn);
|
||||||
filter = NULL;
|
filter = NULL;
|
||||||
} else if (cfg->ldapdn) {
|
} else if (cfg->ldapdn) {
|
||||||
find = strdup(cfg->ldapdn); /* allow free later */
|
find = strdup(cfg->ldapdn); /* allow free later */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user