summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-12 01:55:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-12 01:55:30 +0000
commitb095d6cfaf0694a2116175efafe4c5c4cbb938ef (patch)
tree97173dbed8d2cd5bb5e9ccb2b8672769f1a2796c /cgi.c
parent44cfe1568557d7d58fab370a67aa425243a335b8 (diff)
downloadmandoc-b095d6cfaf0694a2116175efafe4c5c4cbb938ef.tar.gz
fix the two manual links on the index page
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/cgi.c b/cgi.c
index be6aa10b..264e90e6 100644
--- a/cgi.c
+++ b/cgi.c
@@ -415,13 +415,14 @@ resp_index(const struct req *req)
"<A HREF=\"http://mdocml.bsd.lv/\">mandoc</A>\n"
"</H1>");
resp_searchform(req);
- puts("<P>\n"
- "This web interface is documented in the "
- "<A HREF=\"search?expr=Nm~^man\\.cgi$&amp;sec=8\">"
- "man.cgi</A> manual, and the "
- "<A HREF=\"search?expr=Nm~^apropos$&amp;sec=1\">"
- "apropos</A> manual explains the query syntax.\n"
- "</P>");
+ printf("<P>\n"
+ "This web interface is documented in the "
+ "<A HREF=\"%s/search?expr=Nm~^man\\.cgi$&amp;sec=8\">"
+ "man.cgi</A> manual, and the "
+ "<A HREF=\"%s/search?expr=Nm~^apropos$&amp;sec=1\">"
+ "apropos</A> manual explains the query syntax.\n"
+ "</P>\n",
+ scriptname, scriptname);
resp_end_html();
}