1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2024-11-29 00:24:11 +01:00

Use strncpy() instead of strcpy()

Not an issue, just the former is considered good practice.
This commit is contained in:
Karol Babioch 2018-05-04 16:57:28 +02:00
parent 66265a3343
commit 89c1622ba2

View File

@ -289,7 +289,7 @@ main(int argc, char **argv)
ykp_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,
&slot, &verbose,