summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-20 22:04:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-20 22:04:04 +0000
commit5882fa0ffdfd3c74a320281e94d271a1da2f4838 (patch)
tree72c0942d9df217d5534f1d328061c6f9196ba129 /read.c
parent9836682d8f743fe4f30e9772ea332b04d86dd6d7 (diff)
downloadmandoc-5882fa0ffdfd3c74a320281e94d271a1da2f4838.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index 3fe826aa..67209f8d 100644
--- a/read.c
+++ b/read.c
@@ -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);