=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -p -r1.38 -r1.39 --- mandoc/cgi.c 2011/12/16 20:06:58 1.38 +++ mandoc/cgi.c 2011/12/25 17:49:52 1.39 @@ -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. */