aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocdb.c
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
commit16e745d5f0fcf9edaa4f0733c6dd0a128075b31a (patch)
tree4404c6bc44295d84911002d69a4eca2e54c98068 /mandocdb.c
parent4af67b55fa397e14c20700ce9b861abe60f9d8e5 (diff)
downloadmandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.tar.gz
mandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.tar.zst
mandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.zip
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 56d15d75..d9f57416 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.5 2011/07/15 17:59:29 kristaps Exp $ */
+/* $Id: mandocdb.c,v 1.6 2011/09/17 13:54:27 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);