summaryrefslogtreecommitdiffstats
path: root/Documentation/networking/packet_mmap.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/networking/packet_mmap.rst')
-rw-r--r--Documentation/networking/packet_mmap.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/packet_mmap.rst b/Documentation/networking/packet_mmap.rst
index 500ef60b1b82..c5da1a5d93de 100644
--- a/Documentation/networking/packet_mmap.rst
+++ b/Documentation/networking/packet_mmap.rst
@@ -153,7 +153,7 @@ As capture, each frame contains two parts::
struct ifreq s_ifr;
...
- strncpy (s_ifr.ifr_name, "eth0", sizeof(s_ifr.ifr_name));
+ strscpy_pad (s_ifr.ifr_name, "eth0", sizeof(s_ifr.ifr_name));
/* get interface index of eth0 */
ioctl(this->socket, SIOCGIFINDEX, &s_ifr);