From e3e4cf893d0e57fbcc2c28e711cef0e97ccd3059 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Sat, 30 Sep 2006 23:44:18 +0000 Subject: Don't use uninitialized variable. From Peter Philipp . OK deraadt@. --- sbin/ifconfig/ifconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ifconfig/ifconfig.c') diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 8ef266fdb72..758c3c89992 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.174 2006/08/29 17:22:00 henning Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.175 2006/09/30 23:44:17 ray Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -1387,7 +1387,7 @@ setifnwkey(const char *val, int d) return; } } else { - len = sizeof(keybuf[i]); + len = sizeof(keybuf[0]); val = get_string(val, NULL, keybuf[0], &len); if (val == NULL) return; -- cgit v1.2.3