diff options
Diffstat (limited to 'networking/zcip.c')
-rw-r--r-- | networking/zcip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index a6b034e..e25f017 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) { |