artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67be0c8
)
in debug messages, truncating strings of excessive lengths is actually
author
schwarze
<schwarze@openbsd.org>
Sun, 20 Apr 2014 22:03:40 +0000
(22:03 +0000)
committer
schwarze
<schwarze@openbsd.org>
Sun, 20 Apr 2014 22:03:40 +0000
(22:03 +0000)
a good thing, so cast the return value from sprintf to (void);
this concludes the mandoc sprintf audit
usr.bin/mandoc/read.c
patch
|
blob
|
history
diff --git
a/usr.bin/mandoc/read.c
b/usr.bin/mandoc/read.c
index
97e1d06
..
9562593
100644
(file)
--- a/
usr.bin/mandoc/read.c
+++ b/
usr.bin/mandoc/read.c
@@
-1,4
+1,4
@@
-/* $Id: read.c,v 1.2
5 2014/04/20 16:44:44
schwarze Exp $ */
+/* $Id: read.c,v 1.2
6 2014/04/20 22:03:40
schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@
-827,7
+827,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);