From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s3KM45Gs008607 for ; Sun, 20 Apr 2014 18:04:05 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s3KM44Va000744; Sun, 20 Apr 2014 18:04:04 -0400 (EDT) Date: Sun, 20 Apr 2014 18:04:04 -0400 (EDT) Message-Id: <201404202204.s3KM44Va000744@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: in debug messages, truncating strings of excessive lengths is X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- in debug messages, truncating strings of excessive lengths is actually a good thing, so cast the return value from sprintf to (void); this concludes the mandoc sprintf audit Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/read.c,v retrieving revision 1.47 retrieving revision 1.48 diff -Lread.c -Lread.c -u -p -r1.47 -r1.48 --- read.c +++ read.c @@ -852,7 +852,7 @@ mandoc_vmsg(enum mandocerr t, struct mpa va_list ap; va_start(ap, fmt); - vsnprintf(buf, sizeof(buf) - 1, fmt, ap); + (void)vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); mandoc_msg(t, m, ln, pos, buf); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv