* 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:
@@ -101,7 +101,7 @@ status_t MediaJack::getInput(
|
|||||||
input->source = m_source;
|
input->source = m_source;
|
||||||
input->destination = m_destination;
|
input->destination = m_destination;
|
||||||
input->format = m_format;
|
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_OK;
|
||||||
}
|
}
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
@@ -117,7 +117,7 @@ status_t MediaJack::getOutput(
|
|||||||
output->source = m_source;
|
output->source = m_source;
|
||||||
output->destination = m_destination;
|
output->destination = m_destination;
|
||||||
output->format = m_format;
|
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_OK;
|
||||||
}
|
}
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user