3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +01:00

hwsim: Fix string length bug

This commit is contained in:
Tim Kourt 2016-07-07 11:33:37 -07:00 committed by Denis Kenzior
parent 377df7662c
commit a7916ebdf2

View File

@ -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;