diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 6cda5acd6b..d3b88d66c9 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -2039,7 +2039,7 @@ AUPlugin::add_state (XMLNode* root) const XMLTree t; - if (t.read_buffer (string ((const char*) CFDataGetBytePtr (xmlData), CFDataGetLength (xmlData)))) { + if (t.read_buffer (string ((const char*) CFDataGetBytePtr (xmlData), CFDataGetLength (xmlData)).c_str())) { if (t.root()) { root->add_child_copy (*t.root()); }