'libs/audiographer' - Use 'alloca()' for a stack based array whose size is unknown (required to be buildable with MSVC)
This commit is contained in:
parent
5c8306f148
commit
e14966e778
@ -34,7 +34,7 @@ namespace AudioGrapher
|
|||||||
static void
|
static void
|
||||||
snprintf_bounded_null_filled (char* target, size_t target_size, char const * fmt, ...)
|
snprintf_bounded_null_filled (char* target, size_t target_size, char const * fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[target_size+1];
|
char *buf = (char*)alloca(target_size+1);
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start (ap, fmt);
|
va_start (ap, fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user