Remove strcpy/strncpy function callings from supplicant

This commit is contained in:
Kapil Gupta
2022-06-02 19:09:24 +05:30
parent 916a4d6524
commit 2aa6853d3e
3 changed files with 6 additions and 9 deletions

View File

@@ -1115,9 +1115,9 @@ static struct wpabuf * eap_peap_process(struct eap_sm *sm, void *priv,
* label by default, but allow it to be configured with
* phase1 parameter peaplabel=1. */
if (data->peap_version > 1 || data->force_new_label)
strcpy(label, "client PEAP encryption");
os_strlcpy(label, "client PEAP encryption", 24);
else
strcpy(label, "client EAP encryption");
os_strlcpy(label, "client EAP encryption", 24);
wpa_printf(MSG_DEBUG, "EAP-PEAP: using label '%s' in "
"key derivation", label);
data->key_data =