Increased the buffer size for formatting to correct size

This commit is contained in:
dario 2023-11-29 20:18:24 +01:00 committed by carlwachter
parent a4ca79bdad
commit bc6283404a

View File

@ -20,8 +20,8 @@ namespace sta
int n = vsnprintf(temp, 1, fmt, args);
va_start (args, fmt);
char str[n];
vsnprintf(str, n, fmt, args);
char str[n+1];
vsnprintf(str, n+1, fmt, args);
STA_ASSERT(n > 0);
println(str);