X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b0d41b53f31ecf7db5c6777a41fc0184d5d73231..46b3911263da5c15d46e47df0fe14c5f25cf9b86:/cgi.c diff --git a/cgi.c b/cgi.c index 205235a2..6b885976 100644 --- a/cgi.c +++ b/cgi.c @@ -1,6 +1,6 @@ -/* $Id: cgi.c,v 1.41 2012/03/24 00:31:55 kristaps Exp $ */ +/* $Id: cgi.c,v 1.44 2012/05/27 17:48:57 schwarze Exp $ */ /* - * Copyright (c) 2011 Kristaps Dzonsons + * Copyright (c) 2011, 2012 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -733,7 +733,7 @@ format(const struct req *req, const char *file) return; } - mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL); + mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL); rc = mparse_readfd(mp, fd, file); close(fd); @@ -743,7 +743,7 @@ format(const struct req *req, const char *file) } snprintf(opts, sizeof(opts), "fragment," - "man=%s/search.html?sec=%%S&expr=%%N," + "man=%s/search.html?sec=%%S&expr=Nm~^%%N$," /*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/, progname);