diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-25 17:49:52 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-25 17:49:52 +0000 |
commit | 2008dee5c827764c4952cdd2279b165f6b5cfb33 (patch) | |
tree | 155d9b4ce5273a67519d2684f65af96966f0b5ba /cgi.c | |
parent | b7365608ef06a71f7d9658905a3ceb25eeb5089b (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. */ |