mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-12-01 15:24:12 +01:00
Use strncpy() instead of strcpy()
Not an issue, just the former is considered good practice.
This commit is contained in:
parent
66265a3343
commit
89c1622ba2
@ -289,7 +289,7 @@ main(int argc, char **argv)
|
|||||||
ykp_errno = 0;
|
ykp_errno = 0;
|
||||||
yk_errno = 0;
|
yk_errno = 0;
|
||||||
|
|
||||||
strcpy (action, ACTION_ADD_HMAC_CHALRESP);
|
strncpy(action, ACTION_ADD_HMAC_CHALRESP, ACTION_MAX_LEN);
|
||||||
|
|
||||||
if (! parse_args(argc, argv,
|
if (! parse_args(argc, argv,
|
||||||
&slot, &verbose,
|
&slot, &verbose,
|
||||||
|
Loading…
Reference in New Issue
Block a user