summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 22:20:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 22:20:20 +0000
commit0e8f06f45c49948c999df0f344467ec0c31d2da5 (patch)
tree3c022a54d45481facf51f5cfcfba55a93f4ded71
parent725acc4414e36b669a77770a786b7f9490eff3a3 (diff)
string fix
-rw-r--r--sys/netiso/if_eon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c
index 5a458b98f27..66cae1b4c4c 100644
--- a/sys/netiso/if_eon.c
+++ b/sys/netiso/if_eon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eon.c,v 1.17 2002/08/28 15:43:03 pefo Exp $ */
+/* $OpenBSD: if_eon.c,v 1.18 2003/05/03 22:20:19 deraadt Exp $ */
/* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */
/*-
@@ -143,7 +143,7 @@ eonattach()
printf("eonattach()\n");
}
#endif
- sprintf(ifp->if_xname, "eon%d", 0);
+ snprintf(ifp->if_xname, sizeof ifp->if_xname, "eon%d", 0);
ifp->if_mtu = ETHERMTU;
ifp->if_softc = NULL;
/* since everything will go out over ether or token ring */