mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-28 21:19:24 +01:00
hwsim: Fix string length bug
This commit is contained in:
parent
377df7662c
commit
a7916ebdf2
@ -260,7 +260,7 @@ static void hwsim_ready(void *user_data)
|
|||||||
msg_size += 4;
|
msg_size += 4;
|
||||||
|
|
||||||
if (radio_name_attr)
|
if (radio_name_attr)
|
||||||
msg_size += sizeof(radio_name_attr);
|
msg_size += sizeof(radio_name_attr) + 1;
|
||||||
|
|
||||||
if (no_vif_attr)
|
if (no_vif_attr)
|
||||||
msg_size += 4;
|
msg_size += 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user