diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-09-05 09:18:30 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-09-05 09:18:30 +0100 |
commit | e14966e77823964ecb25966df72b74537548df1d (patch) | |
tree | c7c1ccbcb8589a32ed7aa9bf2836cfde8fd0d377 /libs/audiographer | |
parent | 5c8306f1483f85e73c61206e339cd05faca88a3e (diff) |
'libs/audiographer' - Use 'alloca()' for a stack based array whose size is unknown (required to be buildable with MSVC)
Diffstat (limited to 'libs/audiographer')
-rw-r--r-- | libs/audiographer/src/general/broadcast_info.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audiographer/src/general/broadcast_info.cc b/libs/audiographer/src/general/broadcast_info.cc index 43e5008e52..df69ac9c79 100644 --- a/libs/audiographer/src/general/broadcast_info.cc +++ b/libs/audiographer/src/general/broadcast_info.cc @@ -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); |