summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-14 17:36:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-14 17:36:34 +0000
commit3de6837b3b1ef8cfadac52dc3494e5f7c0908288 (patch)
tree18e27c4a5655a8fe9edba49f2762b23f84b7915f /sbin
parent69038f7be9da62f6e6edda214c0659bf64543b27 (diff)
bit more paranoia
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 5fc11352b8e..2b21b9cd2b4 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.13 1996/12/14 17:23:54 deraadt Exp $ */
+/* $OpenBSD: route.c,v 1.14 1996/12/14 17:36:33 deraadt Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: route.c,v 1.13 1996/12/14 17:23:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: route.c,v 1.14 1996/12/14 17:36:33 deraadt Exp $";
#endif
#endif /* not lint */
@@ -388,7 +388,7 @@ routename(sa)
return (link_ntoa((struct sockaddr_dl *)sa));
case AF_ISO:
- (void) sprintf(line, "iso %s",
+ (void) snprintf(line, sizeof line, "iso %s",
iso_ntoa(&((struct sockaddr_iso *)sa)->siso_addr));
break;