summaryrefslogtreecommitdiffstats
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
commitd8209221012e9e8d255530f6ab1fb4751d595ccc (patch)
tree3c501ec69ba3af4bc10ed2a425e3c2c84b57a4c3 /cgi.c
parent524e89a4c20ecf2405bc891d7e147fb2bd10ddc8 (diff)
downloadmandoc-d8209221012e9e8d255530f6ab1fb4751d595ccc.tar.gz
Fix stupid typo: strlcpy() instead of strlcat().
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 49c1521b..28a4b195 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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);