=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.29 retrieving revision 1.31 diff -u -p -r1.29 -r1.31 --- mandoc/cgi.c 2011/12/11 00:22:47 1.29 +++ mandoc/cgi.c 2011/12/14 13:36:59 1.31 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.29 2011/12/11 00:22:47 kristaps Exp $ */ +/* $Id: cgi.c,v 1.31 2011/12/14 13:36:59 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -792,7 +792,7 @@ pg_show(const struct req *req, char *path) } memset(&ps, 0, sizeof(struct manpaths)); - manpath_manconf("etc/catman.conf", &ps); + manpath_manconf(&ps, "etc/catman.conf"); if (vol >= (unsigned int)ps.sz) { resp_error400(); @@ -878,7 +878,7 @@ pg_search(const struct req *req, char *path) } memset(&ps, 0, sizeof(struct manpaths)); - manpath_manconf("etc/catman.conf", &ps); + manpath_manconf(&ps, "etc/catman.conf"); /* * Poor man's tokenisation: just break apart by spaces. @@ -946,7 +946,7 @@ main(void) progname = ""; if (NULL == (css = getenv("CSS_DIR"))) - css = "/"; + css = ""; if (NULL == (host = getenv("HTTP_HOST"))) host = "localhost";