summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 21:15:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 21:15:12 +0000
commit492edca4204c3a1bbefa82cd0298b4bc5044d58c (patch)
treecc04c242a406e06fa0b22325e0c00875a2d3ca78 /sys/net/if_vlan.c
parent59195b3dfca23fbd322412cb1fc7f5fc476edee8 (diff)
string fixes; tedu ok
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c4
1 files changed, 2 insertions, 2 deletions
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 */