From 492edca4204c3a1bbefa82cd0298b4bc5044d58c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 3 May 2003 21:15:12 +0000 Subject: string fixes; tedu ok --- sys/net/if_vlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_vlan.c') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 22ee8975afe..5fcec917897 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.36 2003/05/03 01:43:07 itojun Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.37 2003/05/03 21:15:11 deraadt Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -113,7 +113,7 @@ vlanattach(int count) LIST_INIT(&ifv_softc[i].vlan_mc_listhead); ifp = &ifv_softc[i].ifv_if; ifp->if_softc = &ifv_softc[i]; - sprintf(ifp->if_xname, "vlan%d", i); + snprintf(ifp->if_xname, sizeof ifp->if_xname, "vlan%d", i); /* NB: flags are not set here */ /* NB: mtu is not set here */ -- cgit v1.2.3