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 | 42092681fc893b2d2207082f50a1d0997489566e (patch) | |
tree | 2f8a77d13a24488457aec004f8e6e90e1ee5345e | |
parent | f236d589ddabbe4ec5787f5b5eb22bf4061f5c9b (diff) | |
download | mandoc-42092681fc893b2d2207082f50a1d0997489566e.tar.gz |
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD
-rw-r--r-- | mandocdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |