From ee51278c92d7525378dc6db722d6733f225c1986 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Fri, 13 Apr 2001 18:25:18 +0000 Subject: [PATCH] Fix typo. --- ifconfig.c | 4 ++-- 1 file 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, * 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)); -- 2.7.4