diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-12 01:52:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-12 01:52:58 +0000 |
commit | 4ae5ee5b16acd05fab0b77c4e2fbdac3bab435fc (patch) | |
tree | f8f504a2ec9ed0d936939f9d8d7d25c55551d645 /usr.bin/mandoc/cgi.c | |
parent | 7cfccd3bf96816dbc36c165a27e1f07399d1db5b (diff) |
fix the two links on the start page
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r-- | usr.bin/mandoc/cgi.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index bbf44aeef7c..b4220514ecd 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.3 2014/07/11 22:16:11 tedu Exp $ */ +/* $Id: cgi.c,v 1.4 2014/07/12 01:52:57 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de> @@ -411,13 +411,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$&sec=8\">" - "man.cgi</A> manual, and the " - "<A HREF=\"search?expr=Nm~^apropos$&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$&sec=8\">" + "man.cgi</A> manual, and the " + "<A HREF=\"%s/search?expr=Nm~^apropos$&sec=1\">" + "apropos</A> manual explains the query syntax.\n" + "</P>\n", + scriptname, scriptname); resp_end_html(); } |