diff --git a/plugins/vst_base/RemoteVstPlugin.cpp b/plugins/vst_base/RemoteVstPlugin.cpp index 174a80caa51..127036cd00e 100644 --- a/plugins/vst_base/RemoteVstPlugin.cpp +++ b/plugins/vst_base/RemoteVstPlugin.cpp @@ -1074,7 +1074,7 @@ void RemoteVstPlugin::saveChunkToFile( const std::string & _file ) if( len > 0 ) { FILE* fp = F_OPEN_UTF8( _file, "wb" ); - if ( fwrite( chunk, len, 1, fp ) != len ) + if ( fwrite( chunk, 1, len, fp ) != len ) { fprintf( stderr, "Error saving chunk to file.\n" );