=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.16 retrieving revision 1.18 diff -u -p -r1.16 -r1.18 --- mandoc/cgi.c 2011/12/07 16:18:52 1.16 +++ mandoc/cgi.c 2011/12/08 18:39:14 1.18 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.16 2011/12/07 16:18:52 kristaps Exp $ */ +/* $Id: cgi.c,v 1.18 2011/12/08 18:39:14 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -730,7 +730,7 @@ pg_show(const struct manpaths *ps, const struct req *r else if (NULL == memchr(fn, '\0', val.size - (fn - cp))) resp_baddb(); else { - strlcpy(file, ps->paths[vol], MAXPATHLEN); + strlcpy(file, cache, MAXPATHLEN); strlcat(file, "/", MAXPATHLEN); strlcat(file, fn, MAXPATHLEN); if (0 == strcmp(cp, "cat"))