diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-05-03 22:20:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-05-03 22:20:20 +0000 |
commit | 0e8f06f45c49948c999df0f344467ec0c31d2da5 (patch) | |
tree | 3c022a54d45481facf51f5cfcfba55a93f4ded71 /sys/netiso/if_eon.c | |
parent | 725acc4414e36b669a77770a786b7f9490eff3a3 (diff) |
string fix
Diffstat (limited to 'sys/netiso/if_eon.c')
-rw-r--r-- | sys/netiso/if_eon.c | 4 |
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 */ |