* 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
This commit is contained in:
parent
c8d10a521f
commit
4465d9277f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user