aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-08 18:39:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-08 18:39:14 +0000
commitb55088d2650816fbc4f97b8e19abeab61e1fa119 (patch)
tree4abc869a5518de6b3aeb9b71fdde12d778a7201f /cgi.c
parent031f1f42b2ca6451550a08ab288311db7b343e82 (diff)
downloadmandoc-b55088d2650816fbc4f97b8e19abeab61e1fa119.tar.gz
mandoc-b55088d2650816fbc4f97b8e19abeab61e1fa119.tar.zst
mandoc-b55088d2650816fbc4f97b8e19abeab61e1fa119.zip
Fix stupid typo: strlcpy() instead of strlcat().
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 109eb598..38e821ab 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.17 2011/12/08 00:48:28 kristaps Exp $ */
+/* $Id: cgi.c,v 1.18 2011/12/08 18:39:14 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -731,7 +731,7 @@ pg_show(const struct manpaths *ps, const struct req *req, char *path)
resp_baddb();
else {
strlcpy(file, cache, MAXPATHLEN);
- strlcpy(file, "/", MAXPATHLEN);
+ strlcat(file, "/", MAXPATHLEN);
strlcat(file, fn, MAXPATHLEN);
if (0 == strcmp(cp, "cat"))
catman(file);