- n->args->argv = realloc(n->args->argv,
- n->args->argc * sizeof(struct mdoc_argv));
-
- if (NULL == n->args->argv)
- return(mdoc_nerr(m, m->last, EMALLOC));
-
- n->args->argv[sz].arg = MDOC_Width;
- n->args->argv[sz].line = m->last->line;
- n->args->argv[sz].pos = m->last->pos;
- n->args->argv[sz].sz = 1;
- n->args->argv[sz].value = calloc(1, sizeof(char *));
-
- if (NULL == n->args->argv[sz].value)
- return(mdoc_nerr(m, m->last, EMALLOC));
- if (NULL == (n->args->argv[sz].value[0] = strdup(buf)))
- return(mdoc_nerr(m, m->last, EMALLOC));
+ nn->args->argv = mandoc_realloc(nn->args->argv,
+ nn->args->argc * sizeof(struct mdoc_argv));