From 16e745d5f0fcf9edaa4f0733c6dd0a128075b31a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 17 Sep 2011 13:54:27 +0000 Subject: fix an obvious typo: sz was used uninitialized found while merging to OpenBSD --- mandocdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mandocdb.c') 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 * @@ -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); -- cgit v1.2.3-56-ge451