summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2003-03-16 19:10:47 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2003-03-16 19:10:47 +0000
commit8032f22880c84d52c438c7f1a3f09930d53ef991 (patch)
tree98b4b57544e5f1605b5eb7db9bf4a5fe46d65c0d /usr.bin
parent6dfccac1cd07c5c4c67aa7b881edf6bfea01c262 (diff)
correctly initialize a pointer
OK millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet6.c6
1 files changed, 3 insertions, 3 deletions
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)