From a4a06fdf374d96cf3d8821fbb53b520d9383ee85 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 14 Dec 1996 17:36:33 +0000 Subject: [PATCH] bit more paranoia --- sbin/route/route.c | 6 +++--- 1 file 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; -- 2.20.1