summaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-28 01:17:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-28 01:17:57 +0000
commitdeaf3ae047e6139b81efd89e620aa19a52f91828 (patch)
tree30bac3498bf3129d454a3b4b7a7d5a4a10e4adbe /usr.bin/man
parent4c2b3bee941149f46a00d0d4b0fa347edfbb1f93 (diff)
clarify
Diffstat (limited to 'usr.bin/man')
-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 7a35112010a..ef7fd9770f8 100644
--- a/usr.bin/man/man.c
+++ b/usr.bin/man/man.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man.c,v 1.13 1999/06/10 22:38:02 pjanzen Exp $ */
+/* $OpenBSD: man.c,v 1.14 1999/07/28 01:17:56 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.13 1999/06/10 22:38:02 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: man.c,v 1.14 1999/07/28 01:17:56 deraadt Exp $";
#endif
#endif /* not lint */
@@ -691,7 +691,7 @@ check_pager(name)
save = name;
/* allocate space to add the "-s" */
if (!(name =
- malloc((u_int)(strlen(save) + sizeof("-s") + 1))))
+ malloc((u_int)(strlen(save) + 1 + sizeof("-s")))))
err(1, NULL);
(void)sprintf(name, "%s %s", save, "-s");
}