summaryrefslogtreecommitdiff
path: root/libs/ardour/vst_info_file.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-05-28 02:15:52 +0200
committerRobin Gareus <robin@gareus.org>2014-05-28 02:15:52 +0200
commita1cbe0f1d98aa266321bdac0488422f714892584 (patch)
tree617ba0e04f838dbac19751608f0e1ccf8328804d /libs/ardour/vst_info_file.cc
parent84ccf721ba43ed5bc41ecf4dea4cd5149d1cce2c (diff)
VST: fix name detection if effGetEffectName is N/A, remove superfluous \0.
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r--libs/ardour/vst_info_file.cc6
1 files 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<VSTInfo *>
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 );