mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
Increased the buffer size for formatting to correct size
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user