From 8032f22880c84d52c438c7f1a3f09930d53ef991 Mon Sep 17 00:00:00 2001 From: Nikolay Sturm Date: Sun, 16 Mar 2003 19:10:47 +0000 Subject: correctly initialize a pointer OK millert@ --- usr.bin/netstat/inet6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index f9e4a6cc487..d64fd827bed 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet6.c,v 1.26 2003/03/13 09:09:33 deraadt Exp $ */ +/* $OpenBSD: inet6.c,v 1.27 2003/03/16 19:10:46 sturm Exp $ */ /* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ /* * Copyright (c) 1983, 1988, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)inet.c 8.4 (Berkeley) 4/20/94"; #else -/*__RCSID("$OpenBSD: inet6.c,v 1.26 2003/03/13 09:09:33 deraadt Exp $");*/ +/*__RCSID("$OpenBSD: inet6.c,v 1.27 2003/03/16 19:10:46 sturm Exp $");*/ /*__RCSID("KAME Id: inet6.c,v 1.10 2000/02/09 10:49:31 itojun Exp");*/ #endif #endif /* not lint */ @@ -1054,7 +1054,7 @@ inet6print(struct in6_addr *in6, int port, char *proto) if (len <= 0) goto bail; - cp += len; + cp = strchr(line, '\0'); if (!nflag && port) GETSERVBYPORT6(port, proto, sp); if (sp || port == 0) -- cgit v1.2.3