aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-05-27 17:48:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-05-27 17:48:57 +0000
commit5924b5736a3bec0c2ef93ddbd1da733745942d59 (patch)
tree1df37aca7cb87b5dba851f42f6052cdfcb19f89b /cgi.c
parent75264eae65dc293d4a49cd965f67b124bc6fb138 (diff)
downloadmandoc-5924b5736a3bec0c2ef93ddbd1da733745942d59.tar.gz
mandoc-5924b5736a3bec0c2ef93ddbd1da733745942d59.tar.zst
mandoc-5924b5736a3bec0c2ef93ddbd1da733745942d59.zip
Support -Ios='OpenBSD 5.1' to override uname(3) as the source of the
default value for the mdoc(7) .Os macro. Needed for man.cgi on the OpenBSD website. Problem with man.cgi first noticed by deraadt@; beck@ and deraadt@ agree with the way to solve the issue. "Please check them in and I'll look into them later!" kristaps@
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index c09acb8e..6b885976 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.43 2012/03/25 00:46:39 kristaps Exp $ */
+/* $Id: cgi.c,v 1.44 2012/05/27 17:48:57 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -733,7 +733,7 @@ format(const struct req *req, const char *file)
return;
}
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL);
+ mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL);
rc = mparse_readfd(mp, fd, file);
close(fd);