3 ms·
In this case, it seems the ioctl call will do the null termination & in fact, the kernel itself uses strcpy for that field (presumably OK since the device struc
by user2994cb 11y ago
In this case, it seems the ioctl call will do the null termination & in fact, the kernel itself uses strcpy for that field (presumably OK since the device structure has a null terminated name):
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/tun.c?id=refs/tags/v4.5-rc6 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux....