From c8d73e251047e8859a65f91c95d63ae37f97e1a6 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 25 Dec 2011 17:49:52 +0000 Subject: Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.h to do so. --- cgi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cgi.c') 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 * @@ -41,6 +41,7 @@ #include "man.h" #include "main.h" #include "manpath.h" +#include "mandocdb.h" #ifdef __linux__ # include @@ -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. */ -- cgit v1.2.3