From 20fb2bec754ad541edbf319c5b92e8c812dcbcc6 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Fri, 28 Aug 2015 10:33:01 +1000 Subject: [PATCH] Don't truncate pretty port names when setting up port bundles This was causing truncation in the mixer strip input/output popup menus and the channel number identifier was truncated --- libs/ardour/session.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 6968f9ba28..29e0777cfa 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -811,10 +811,10 @@ Session::setup_bundles () /* mono output bundles */ for (uint32_t np = 0; np < outputs[DataType::AUDIO].size(); ++np) { - char buf[32]; + char buf[64]; std::string pn = _engine.get_pretty_name_by_name (outputs[DataType::AUDIO][np]); if (!pn.empty()) { - snprintf (buf, sizeof (buf), _("out %s"), pn.substr(0,12).c_str()); + snprintf (buf, sizeof (buf), _("out %s"), pn.c_str()); } else { snprintf (buf, sizeof (buf), _("out %" PRIu32), np+1); } @@ -845,10 +845,10 @@ Session::setup_bundles () /* mono input bundles */ for (uint32_t np = 0; np < inputs[DataType::AUDIO].size(); ++np) { - char buf[32]; + char buf[64]; std::string pn = _engine.get_pretty_name_by_name (inputs[DataType::AUDIO][np]); if (!pn.empty()) { - snprintf (buf, sizeof (buf), _("in %s"), pn.substr(0,12).c_str()); + snprintf (buf, sizeof (buf), _("in %s"), pn.c_str()); } else { snprintf (buf, sizeof (buf), _("in %" PRIu32), np+1); }