From adee842450911645d2c4da8fc08e135cdaea922d Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 27 Feb 2007 17:00:59 +0000 Subject: unbreak create operation, must copy argument to global name Spotted by: des --- sbin/ifconfig/ifconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 3860bd5..6cd8d69 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -239,6 +239,7 @@ main(int argc, char *argv[]) */ if (argc > 0 && (strcmp(argv[0], "create") == 0 || strcmp(argv[0], "plumb") == 0)) { + (void) strlcpy(name, ifname, sizeof(name)); ifconfig(argc, argv, NULL); exit(0); } -- cgit v1.1