diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-09-17 13:54:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-09-17 13:54:27 +0000 |
commit | 16e745d5f0fcf9edaa4f0733c6dd0a128075b31a (patch) | |
tree | 4404c6bc44295d84911002d69a4eca2e54c98068 | |
parent | 4af67b55fa397e14c20700ce9b861abe60f9d8e5 (diff) | |
download | mandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.tar.gz mandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.tar.zst mandoc-16e745d5f0fcf9edaa4f0733c6dd0a128075b31a.zip |
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD
-rw-r--r-- | mandocdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |