diff options
author | 2014-04-20 22:04:04 +0000 | |
---|---|---|
committer | 2014-04-20 22:04:04 +0000 | |
commit | 2cda3c176360e39d41c057136d83a3deac799b17 (patch) | |
tree | 68b5789a7a594176a3db686e36729909a073da91 /read.c | |
parent | 22c17f489c43bed49e186985f484acd6a3ea1964 (diff) | |
download | mandoc-2cda3c176360e39d41c057136d83a3deac799b17.tar.gz mandoc-2cda3c176360e39d41c057136d83a3deac799b17.tar.zst mandoc-2cda3c176360e39d41c057136d83a3deac799b17.zip |
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
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.47 2014/04/20 16:46:05 schwarze Exp $ */ +/* $Id: read.c,v 1.48 2014/04/20 22:04:04 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -852,7 +852,7 @@ mandoc_vmsg(enum mandocerr t, struct mparse *m, 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); |