--- linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp 2017/06/23 11:56:17 3288 +++ linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp 2017/06/23 12:06:00 3289 @@ -493,7 +493,7 @@ StateBuf = strdup(state.c_str()); *data = StateBuf; dmsg(2, ("<--getChunk\n")); - return state.length() + 1; + return (VstInt32) state.length() + 1; }