From 2c28048e90be7efe4f73b90fe7385a0a130b9b6c Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 11 Nov 2012 23:13:01 +0100 Subject: [PATCH] RemoteVstPlugin: fixed too short arrays for preset names The dimension of preset name arrays was too small. Fixed this by raising it from 30 to 64 characters. --- plugins/vst_base/RemoteVstPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vst_base/RemoteVstPlugin.cpp b/plugins/vst_base/RemoteVstPlugin.cpp index 2f17643d..030bb5b6 100644 --- a/plugins/vst_base/RemoteVstPlugin.cpp +++ b/plugins/vst_base/RemoteVstPlugin.cpp @@ -883,7 +883,7 @@ void RemoteVstPlugin::rotateProgram( int _len ) currProgram = _len - 1; } - char presName[30]; + char presName[64]; sprintf( presName, " %d/%d: %s", currProgram, m_plugin->numPrograms, presetName() ); sendMessage( message( IdVstPluginPresetString ).addString( presName ) ); @@ -1106,7 +1106,7 @@ void RemoteVstPlugin::loadChunkFromPresetFile( const std::string & _file ) fclose( stream ); } } - char presName[30]; + char presName[64]; int currProgram = m_plugin->dispatcher(m_plugin, effGetProgram, 0, 0, 0, 0) + 1; sprintf( presName, " %d/%d: %s", currProgram, m_plugin->numPrograms, presetName() ); -- 2.11.4.GIT