=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/Attic/ns.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/netstat/Attic/ns.c 1997/06/29 21:46:05 1.4 +++ src/usr.bin/netstat/Attic/ns.c 1998/02/27 12:07:38 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: ns.c,v 1.4 1997/06/29 21:46:05 millert Exp $ */ +/* $OpenBSD: ns.c,v 1.5 1998/02/27 12:07:38 deraadt Exp $ */ /* $NetBSD: ns.c,v 1.8 1995/10/03 21:42:46 thorpej Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)ns.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: ns.c,v 1.4 1997/06/29 21:46:05 millert Exp $"; +static char *rcsid = "$OpenBSD: ns.c,v 1.5 1998/02/27 12:07:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -344,7 +344,8 @@ where = "in transit"; else where = "at destination"; - sprintf(codebuf, "Unknown XNS error code 0%o", c); + snprintf(codebuf, sizeof codebuf, + "Unknown XNS error code 0%o", c); name = codebuf; } else where = ns_errnames[j].where;