3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

anqp: Fix l_strlcpy usage

This commit is contained in:
Denis Kenzior 2019-06-14 16:22:22 -05:00
parent 2ce5277f6d
commit b8d60bb848

View File

@ -253,8 +253,7 @@ static bool parse_eap(const unsigned char *anqp, unsigned int len,
method_out->method = method;
/* nai is guarenteed to NULL terminate and be < 256 bytes */
l_strlcpy(method_out->realm, nai,
sizeof(method_out->realm) - 1);
l_strlcpy(method_out->realm, nai, sizeof(method_out->realm));
method_out->non_eap_inner = non_eap_inner;
method_out->eap_inner = eap_inner;
method_out->credential = credential;