[PATCH] ath10k: replace deprecated strncpy with strtomem_pad

Jeff Johnson quic_jjohnson at quicinc.com
Tue Oct 24 07:11:51 PDT 2023

On 10/24/2023 6:03 AM, Kalle Valo wrote:
> What about using just memcpy() to make it clear it's not really a proper
> string:
> arvif->u.ap.ssid_len = 4;
> memcpy(arvif->u.ap.ssid, "mesh", arvif->u.ap.ssid_len);

In the "changed & BSS_CHANGED_SSID" case that comes soon after this we 
just set the length and use memcpy without clearing the rest of the 
buffer, so doing the same here, as you suggest, would be consistent.


More information about the ath10k mailing list