summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-25 17:49:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-25 17:49:52 +0000
commit2008dee5c827764c4952cdd2279b165f6b5cfb33 (patch)
tree155d9b4ce5273a67519d2684f65af96966f0b5ba /cgi.c
parentb7365608ef06a71f7d9658905a3ceb25eeb5089b (diff)
downloadmandoc-2008dee5c827764c4952cdd2279b165f6b5cfb33.tar.gz
Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.h
to do so.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 9551e459..629a0429 100644
--- a/cgi.c
+++ b/cgi.c
@@ -41,6 +41,7 @@
#include "man.h"
#include "main.h"
#include "manpath.h"
+#include "mandocdb.h"
#ifdef __linux__
# include <db_185.h>
@@ -843,7 +844,8 @@ pg_show(const struct req *req, char *path)
sz = strlcpy(file, ps.paths[vol], MAXPATHLEN);
assert(sz < MAXPATHLEN);
- strlcat(file, "/mandoc.index", MAXPATHLEN);
+ strlcat(file, "/", MAXPATHLEN);
+ strlcat(file, MANDOC_IDX, MAXPATHLEN);
/* Open the index recno(3) database. */