a good thing, so cast the return value from sprintf to (void);
this concludes the mandoc sprintf audit
-/* $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>
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
va_list ap;
va_start(ap, fmt);
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);
va_end(ap);
mandoc_msg(t, m, ln, pos, buf);