We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e0a53f commit a33413bCopy full SHA for a33413b
net/ip/native_sockets/src/native_itf.c
@@ -73,6 +73,7 @@ native_sock_itf_getnext(struct mn_itf *mi)
73
continue;
74
}
75
strncpy(mi->mif_name, ifa->ifa_name, sizeof(mi->mif_name));
76
+ mi->mif_name[sizeof(mi->mif_name) - 1] = '\0';
77
mi->mif_idx = cur_idx;
78
mi->mif_flags = itf_flags(ifa->ifa_flags);
79
rc = 0;
0 commit comments