summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */