=================================================================== RCS file: /cvs/mandoc/eqn.c,v retrieving revision 1.41 retrieving revision 1.44 diff -u -p -r1.41 -r1.44 --- mandoc/eqn.c 2014/04/20 19:40:13 1.41 +++ mandoc/eqn.c 2014/07/06 19:09:00 1.44 @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.41 2014/04/20 19:40:13 schwarze Exp $ */ +/* $Id: eqn.c,v 1.44 2014/07/06 19:09:00 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); } @@ -767,7 +768,7 @@ again: ep->cur++; } else { if (q) - EQN_MSG(MANDOCERR_BADQUOTE, ep); + EQN_MSG(MANDOCERR_ARG_QUOTE, ep); next = strchr(start, '\0'); *sz = (size_t)(next - start); ep->cur += *sz; @@ -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; }