From f654d453bafa87120e489e0f8fe1cb79dbca3ae5 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 12 Feb 2018 17:13:54 +0000 Subject: [PATCH] Fixed a compiler warning --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 522162dc05..c573f0c10a 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -2090,15 +2090,15 @@ private: } pointer_sized_int handleCockosGetParameterText (pointer_sized_int paramIndex, - void* destination, + void* dest, float value) { - if (processor != nullptr && destination != nullptr) + if (processor != nullptr && dest != nullptr) { if (auto* param = processor->getParameters()[(int) paramIndex]) { String text (param->getText (value, 1024)); - memcpy (destination, text.toRawUTF8(), text.length() + 1); + memcpy (dest, text.toRawUTF8(), ((size_t) text.length()) + 1); return 0xbeef; } }