Fix printf buffer overflow when cols>16 (#7998)

This commit is contained in:
Joel Challis 2020-01-25 02:57:30 +00:00 committed by Danny
parent 5e65af3a76
commit d4ccb2e0e6

View file

@ -120,7 +120,8 @@ static void putchw(void* putp, putcf putf, int n, char z, char* bf) {
} }
void tfp_format(void* putp, putcf putf, char* fmt, va_list va) { void tfp_format(void* putp, putcf putf, char* fmt, va_list va) {
char bf[12]; // This used to handle max of 12, but binary support jumps this to at least 32
char bf[36];
char ch; char ch;