diff options
author | Rob Landley <rob@landley.net> | 2006-06-25 04:34:52 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-25 04:34:52 +0400 |
commit | 768945b762b8850691acd2b63116eed18faa1812 (patch) | |
tree | 7b443f4d614e327205a5aa17f2c0371c2a04723e /networking/zcip.c | |
parent | 641c3537c0bf63793a6195108a1d2e682ed4cba1 (diff) |
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
removing some unnecessary code.
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 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) { |