summaryrefslogtreecommitdiffstats
path: root/eqn.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-20 19:40:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-20 19:40:13 +0000
commit846dd76f5940424c60690661ffd74602f74b5051 (patch)
tree010026608697be4b8db0f1a10b18a8f9fa9ef893 /eqn.c
parentf45f622c8ebfa925e3b5340d31a0b4f9380ff675 (diff)
downloadmandoc-846dd76f5940424c60690661ffd74602f74b5051.tar.gz
make sure static buffers for snprintf(3) are large enough
and cast snprintf return value to (void) where they are
Diffstat (limited to 'eqn.c')
-rw-r--r--eqn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eqn.c b/eqn.c
index d2347cb4..5f2546ee 100644
--- a/eqn.c
+++ b/eqn.c
@@ -628,7 +628,7 @@ eqn_box(struct eqn_node *ep, struct eqn_box *last)
for (i = 0; i < (int)EQNSYM__MAX; i++)
if (EQNSTREQ(&eqnsyms[i].str, start, sz)) {
sym[63] = '\0';
- snprintf(sym, 62, "\\[%s]", eqnsyms[i].sym);
+ (void)snprintf(sym, 62, "\\[%s]", eqnsyms[i].sym);
bp->text = mandoc_strdup(sym);
return(EQN_OK);
}