13
0

'libs/audiographer' - Use 'alloca()' for a stack based array whose size is unknown (required to be buildable with MSVC)

This commit is contained in:
John Emmas 2013-09-05 09:18:30 +01:00
parent 5c8306f148
commit e14966e778

View File

@ -34,7 +34,7 @@ namespace AudioGrapher
static void
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_start (ap, fmt);