anqp: Fix l_strlcpy usage

This commit is contained in:
Denis Kenzior 2019-06-14 16:22:22 -05:00
parent 2ce5277f6d
commit b8d60bb848
1 changed files with 1 additions and 2 deletions

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;