summaryrefslogtreecommitdiffstats
path: root/usr.bin/man/man.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-11-16 06:28:32 +0000
committerderaadt <deraadt@openbsd.org>1998-11-16 06:28:32 +0000
commit0a6f62a1b9671bb7efec6d97bf99a5230027d0b4 (patch)
tree44e06cc0c638a8298b2f2fccd04405615db7b2f6 /usr.bin/man/man.c
parentsome -Wall.. much more needed (diff)
downloadwireguard-openbsd-0a6f62a1b9671bb7efec6d97bf99a5230027d0b4.tar.xz
wireguard-openbsd-0a6f62a1b9671bb7efec6d97bf99a5230027d0b4.zip
off by one string termination; wsanchez
Diffstat (limited to 'usr.bin/man/man.c')
-rw-r--r--usr.bin/man/man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/man/man.c b/usr.bin/man/man.c
index c32d968b2d0..6113244e275 100644
--- a/usr.bin/man/man.c
+++ b/usr.bin/man/man.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man.c,v 1.11 1998/09/14 05:44:12 deraadt Exp $ */
+/* $OpenBSD: man.c,v 1.12 1998/11/16 06:28:32 deraadt Exp $ */
/* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
#else
-static char rcsid[] = "$OpenBSD: man.c,v 1.11 1998/09/14 05:44:12 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: man.c,v 1.12 1998/11/16 06:28:32 deraadt Exp $";
#endif
#endif /* not lint */
@@ -385,7 +385,7 @@ main(argc, argv)
p += len;
*p++ = ' ';
}
- *p = '\0';
+ *--p = '\0';
/* Use system(3) in case someone's pager is "pager arg1 arg2". */
(void)system(cmd);