=================================================================== RCS file: /cvs/mandoc/eqn.c,v retrieving revision 1.41 retrieving revision 1.43 diff -u -p -r1.41 -r1.43 --- mandoc/eqn.c 2014/04/20 19:40:13 1.41 +++ mandoc/eqn.c 2014/07/04 16:12:08 1.43 @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.41 2014/04/20 19:40:13 schwarze Exp $ */ +/* $Id: eqn.c,v 1.43 2014/07/04 16:12:08 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -300,7 +300,8 @@ eqn_read(struct eqn_node **epp, int ln, p++; if ('\0' == *p) return(er); - mandoc_msg(MANDOCERR_ARGSLOST, ep->parse, ln, pos, NULL); + mandoc_vmsg(MANDOCERR_ARG_SKIP, ep->parse, + ln, pos, "EN %s", p); return(er); } @@ -864,8 +865,8 @@ eqn_do_define(struct eqn_node *ep) if (i == (int)ep->defsz) { ep->defsz++; - ep->defs = mandoc_realloc(ep->defs, - ep->defsz * sizeof(struct eqn_def)); + ep->defs = mandoc_reallocarray(ep->defs, + ep->defsz, sizeof(struct eqn_def)); ep->defs[i].key = ep->defs[i].val = NULL; }