diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-20 22:04:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-20 22:04:04 +0000 |
commit | 5882fa0ffdfd3c74a320281e94d271a1da2f4838 (patch) | |
tree | 72c0942d9df217d5534f1d328061c6f9196ba129 /read.c | |
parent | 9836682d8f743fe4f30e9772ea332b04d86dd6d7 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |