From 4465d9277f6c31e4a81223621430122ec16afb7d Mon Sep 17 00:00:00 2001 From: Alexandre Deckner Date: Fri, 1 May 2009 18:52:27 +0000 Subject: [PATCH] * Fix broken copy of a BString into a fixed size char[]. Input/output endpoints names would be broken and "Save Nodes" would create a broken file. Open/Save nodes now works (again?) and endpoint names display correctly in info windows/views. That detail is fixed but it's the design of Cortex that's broken here really :) To be continued... some day git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30539 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/cortex/MediaRoutingView/MediaJack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/cortex/MediaRoutingView/MediaJack.cpp b/src/apps/cortex/MediaRoutingView/MediaJack.cpp index c9a9bace91..838cca4217 100644 --- a/src/apps/cortex/MediaRoutingView/MediaJack.cpp +++ b/src/apps/cortex/MediaRoutingView/MediaJack.cpp @@ -101,7 +101,7 @@ status_t MediaJack::getInput( input->source = m_source; input->destination = m_destination; input->format = m_format; - m_label.CopyInto(input->name, 0, 64); + strlcpy(input->name, m_label.String(), B_MEDIA_NAME_LENGTH); return B_OK; } return B_ERROR; @@ -117,7 +117,7 @@ status_t MediaJack::getOutput( output->source = m_source; output->destination = m_destination; output->format = m_format; - m_label.CopyInto(output->name, 0, 64); + strlcpy(output->name, m_label.String(), B_MEDIA_NAME_LENGTH); return B_OK; } return B_ERROR;