diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-16 06:28:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-16 06:28:33 +0000 |
commit | 013ce23c0646befd280c7c1bf5295d3412fcb79d (patch) | |
tree | ae84f22269422281dfa856d70c435b96319a1c48 /usr.bin/man | |
parent | 962cb177a58ece8c8b8e9c6ca6bb31de976186ba (diff) |
off by one string termination; wsanchez
Diffstat (limited to 'usr.bin/man')
-rw-r--r-- | usr.bin/man/man.c | 6 |
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); |