summaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 21:16:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-03 21:16:31 +0000
commit725acc4414e36b669a77770a786b7f9490eff3a3 (patch)
tree5413c025cb9c943e75923103c2fc48bfbd4414b4 /sys/netipx
parent492edca4204c3a1bbefa82cd0298b4bc5044d58c (diff)
string fixes; tedu ok
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c
index 436667d39ea..332cd4945b3 100644
--- a/sys/netipx/ipx_ip.c
+++ b/sys/netipx/ipx_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_ip.c,v 1.13 2002/09/18 07:46:56 mickey Exp $ */
+/* $OpenBSD: ipx_ip.c,v 1.14 2003/05/03 21:16:30 deraadt Exp $ */
/*-
*
@@ -94,7 +94,7 @@ ipxipattach(void)
if (ipxipif.if_mtu == 0) {
ifp = &ipxipif;
- sprintf(ifp->if_xname, "ipx0");
+ snprintf(ifp->if_xname, sizeof ifp->if_xname, "ipx0");
ifp->if_mtu = LOMTU;
ifp->if_ioctl = ipxipioctl;
ifp->if_output = ipxipoutput;
@@ -111,7 +111,7 @@ ipxipattach(void)
ipxip_list = m;
ifp = &m->ifen_ifnet;
- sprintf(ifp->if_xname, "ipx0");
+ snprintf(ifp->if_xname, sizeof ifp->if_xname, "ipx0");
ifp->if_mtu = LOMTU;
ifp->if_ioctl = ipxipioctl;
ifp->if_output = ipxipoutput;