From a1cbe0f1d98aa266321bdac0488422f714892584 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 28 May 2014 02:15:52 +0200 Subject: VST: fix name detection if effGetEffectName is N/A, remove superfluous \0. --- libs/ardour/vst_info_file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index 693bb6ba9e..6755d91b6a 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -610,8 +610,8 @@ vstfx_parse_vst_state (VSTState* vstfx) fail to implement getVendorString, and so won't stuff the string with any name*/ - char creator[65] = "Unknown\0"; - char name[65] = "Unknown\0"; + char creator[65] = "Unknown"; + char name[65] = ""; AEffect* plugin = vstfx->plugin; @@ -715,7 +715,7 @@ vstfx_info_from_plugin (const char *dllpath, VSTState* vstfx, vector string path = vstfx->handle->path; do { - char name[65] = "Unknown\0"; + char name[65] = "Unknown"; id = plugin->dispatcher (plugin, effShellGetNextPlugin, 0, 0, name, 0); ids.push_back(std::make_pair(id, name)); } while ( id != 0 ); -- cgit v1.2.3