On Sun, Dec 29, 2019 at 11:17:26PM +0000, Colin Watson wrote: > if (*form == '%') { > form++; > result += '%'; > } > else { > ... > snprintf(sprintf_buf, sizeof(sprintf_buf), > one_format.contents(), v[i++]); > result += sprintf_buf; > } > one_format.clear();
I like this better than what I suggested, seems easier to follow. I might be bike shedding a bit too much but I'd take this one. On a different topic, is there any sort of test suite for pic and the other parts of roff?