summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-09-17 13:54:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-09-17 13:54:27 +0000
commit42092681fc893b2d2207082f50a1d0997489566e (patch)
tree2f8a77d13a24488457aec004f8e6e90e1ee5345e
parentf236d589ddabbe4ec5787f5b5eb22bf4061f5c9b (diff)
downloadmandoc-42092681fc893b2d2207082f50a1d0997489566e.tar.gz
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD
-rw-r--r--mandocdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index c121a361..2e58d1db 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1254,7 +1254,7 @@ ofile_dirbuild(const char *dir, int verb, struct of **of)
buf[0] = '\0';
strlcat(buf, dir, MAXPATHLEN);
strlcat(buf, "/", MAXPATHLEN);
- strlcat(buf, fn, MAXPATHLEN);
+ sz = strlcat(buf, fn, MAXPATHLEN);
if (sz >= MAXPATHLEN) {
fprintf(stderr, "%s: Path too long\n", dir);
return(0);