aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitc8d73e251047e8859a65f91c95d63ae37f97e1a6 (patch)
treebae90b1945998a3b861837b870345b45e6e6896b /cgi.c
parentedc2864f44502c5d9f45664a5d58f03c4146ca27 (diff)
downloadmandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.tar.gz
mandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.tar.zst
mandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.zip
Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.h
to do so.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 7d32a626..44f40e27 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.38 2011/12/16 20:06:58 kristaps Exp $ */
+/* $Id: cgi.c,v 1.39 2011/12/25 17:49:52 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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. */