aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/zcip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/zcip.c b/networking/zcip.c
index a6b034ea2..e25f01755 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -240,7 +240,7 @@ int zcip_main(int argc, char *argv[])
// initialize saddr
memset(&saddr, 0, sizeof (saddr));
- strncpy(saddr.sa_data, intf, sizeof (saddr.sa_data));
+ safe_strncpy(saddr.sa_data, intf, sizeof (saddr.sa_data));
// open an ARP socket
if ((fd = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP))) < 0) {