From 31cf2dfa1b8744c5c9e2b95fd439c6c9610b5826 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 16 Oct 2022 21:45:09 +0200 Subject: [PATCH] Do not constrain bundle names to 32 chars --- libs/ardour/io.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 69e782c04f..2bacde4300 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1472,8 +1472,6 @@ IO::midi(uint32_t n) const void IO::setup_bundle () { - char buf[32]; - if (!_bundle) { _bundle.reset (new Bundle (_direction == Input)); } @@ -1482,12 +1480,7 @@ IO::setup_bundle () _bundle->remove_channels (); - if (_direction == Input) { - snprintf(buf, sizeof (buf), _("%s in"), _name.val().c_str()); - } else { - snprintf(buf, sizeof (buf), _("%s out"), _name.val().c_str()); - } - _bundle->set_name (buf); + _bundle->set_name (string_compose ("%1 %2", _name, _direction == Input ? _("in") : _("out"))); int c = 0; for (DataType::iterator i = DataType::begin(); i != DataType::end(); ++i) {