From d8209221012e9e8d255530f6ab1fb4751d595ccc Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 8 Dec 2011 18:39:14 +0000 Subject: Fix stupid typo: strlcpy() instead of strlcat(). --- cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgi.c') 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); -- cgit