From 0f3b41f590ed8d573ce3891f6502f211d1be176a Mon Sep 17 00:00:00 2001 From: Hyunin Song Date: Sat, 7 Jul 2018 10:34:08 +0900 Subject: [PATCH] Fix fwrite parameter ordering --- plugins/vst_base/RemoteVstPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" );