From ac03e4a937a9a0581423fa0c9cfb6cea5dbd2275 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 9 May 2017 21:58:50 +0200 Subject: Bump VST param-name length limit to 128 bytes and centralize definition The official VST spec says 8 bytes, JUCE uses 24 + 1, and there's anecdotal evidence that some VSTs use up to 100 (which apparently works in many hosts). --- libs/ardour/vst_info_file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/vst_info_file.cc') diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index 77be57e8d8..b076c42227 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -682,8 +682,8 @@ vstfx_parse_vst_state (VSTState* vstfx) #endif for (int i = 0; i < info->numParams; ++i) { - char name[64]; - char label[64]; + char name[VestigeMaxLabelLen]; + char label[VestigeMaxLabelLen]; /* Not all plugins give parameters labels as well as names */ -- cgit v1.2.3