summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 9457fe83..29baaa92 100644
--- a/cgi.c
+++ b/cgi.c
@@ -683,7 +683,8 @@ format(const struct req *req, const char *file)
return;
}
- mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL);
+ mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL,
+ req->q.manroot);
rc = mparse_readfd(mp, fd, file);
close(fd);