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.
This commit is contained in:
1 parent
295dd63b0e
commit
3842cb3d61
1 file changed
+2
-2
@@ -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() );
|
||||
|
||||
|
||||
Reference in new issue
Block a user