aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2001-04-13 18:25:18 +0000
committerPhil Blundell <philb@gnu.org>2001-04-13 18:25:18 +0000
commitee51278c92d7525378dc6db722d6733f225c1986 (patch)
tree157a86a8169fd29517eed0bed2574027552a4302 /ifconfig.c
parentReformat recently-added code to match style of the rest. (diff)
downloadnet-tools-ee51278c92d7525378dc6db722d6733f225c1986.tar.gz
net-tools-ee51278c92d7525378dc6db722d6733f225c1986.tar.bz2
net-tools-ee51278c92d7525378dc6db722d6733f225c1986.zip
Fix typo.
Diffstat (limited to 'ifconfig.c')
-rw-r--r--ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ifconfig.c b/ifconfig.c
index 5dc237e..73a4e9b 100644
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: ifconfig.c,v 1.49 2001/04/13 18:24:21 pb Exp $
+ * Version: $Id: ifconfig.c,v 1.50 2001/04/13 18:25:18 pb Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
@@ -125,7 +125,7 @@ static int set_flag(char *ifname, short flag)
{
struct ifreq ifr;
- safe_strcpy(ifr.ifr_name, ifname, IFNAMSIZ);
+ safe_strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
if (ioctl(skfd, SIOCGIFFLAGS, &ifr) < 0) {
fprintf(stderr, _("%s: unknown interface: %s\n"),
ifname, strerror(errno));