master
$OpenBSD$
obvious cases of missing .An; found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
With malloc option J, the first realloc(3) in apply(1) would return memory that is filled with junk only. Allocate the empty string with malloc(3) and initialize it explicitly with the NUL terminator. OK tb@ tobias@