source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: fix an obvious typo: sz was used uninitialized found while
@ 2011-09-17 13:54 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2011-09-17 13:54 UTC (permalink / raw)
  To: source

Log Message:
-----------
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD

Modified Files:
--------------
    mdocml:
        mandocdb.c

Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.5 -r1.6
--- mandocdb.c
+++ mandocdb.c
@@ -1254,7 +1254,7 @@ ofile_dirbuild(const char *dir, int verb
 		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);
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-17 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-17 13:54 mdocml: fix an obvious typo: sz was used uninitialized found while schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).