diff options
author | Rob Landley | 2006-06-25 00:34:52 +0000 |
---|---|---|
committer | Rob Landley | 2006-06-25 00:34:52 +0000 |
commit | 768945b762b8850691acd2b63116eed18faa1812 (patch) | |
tree | 7b443f4d614e327205a5aa17f2c0371c2a04723e /networking | |
parent | 641c3537c0bf63793a6195108a1d2e682ed4cba1 (diff) | |
download | busybox-768945b762b8850691acd2b63116eed18faa1812.zip busybox-768945b762b8850691acd2b63116eed18faa1812.tar.gz |
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
removing some unnecessary code.
Diffstat (limited to 'networking')
-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) { |