fix macro listings (-m w/ -l). Slightly broken by varargs update.

This commit is contained in:
Kelvin Sherlock 2016-02-24 13:33:13 -05:00
parent 4cc8c97be5
commit 2224fcb803

View File

@ -492,7 +492,7 @@ labeledLine(void)
vaddText(char *buffer, char **bufferPtr, char *format, va_list ap)
{
vsprintf(*bufferPtr, format, ap);
*bufferPtr = buffer = strlen(buffer);
*bufferPtr = buffer + strlen(buffer);
}
void
@ -521,7 +521,7 @@ moreText(char *format, ...)
{
va_list ap;
va_start(ap, format);
addText(expansionString, &expansionStringPtr, format, ap);
vaddText(expansionString, &expansionStringPtr, format, ap);
va_end(ap);
}