aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit65a30b6a8483e0d463be04baf7c765ac4de2aa90 (patch)
treee3e06317536c99cf158a0495074a8cc760254707 /cgi.c
parent633e80d2469e87e70cd90b0bf8ccca4c81561b46 (diff)
downloadmandoc-65a30b6a8483e0d463be04baf7c765ac4de2aa90.tar.gz
mandoc-65a30b6a8483e0d463be04baf7c765ac4de2aa90.tar.zst
mandoc-65a30b6a8483e0d463be04baf7c765ac4de2aa90.zip
fix the two manual links on the index page
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/cgi.c b/cgi.c
index 1672bffc..275d6001 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.63 2014/07/11 22:27:35 schwarze Exp $ */
+/* $Id: cgi.c,v 1.64 2014/07/12 01:55:30 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de>
@@ -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();
}