Skip to content

Commit 4716c1b

Browse files
committed
improve resbufToList
1 parent 804157f commit 4716c1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PyRxCore/ResultBuffer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ resbuf* listToResbuf(const boost::python::object& bpl)
243243
const PyEdSelectionSet ss = extract<PyEdSelectionSet>(tpl[1]);
244244
{
245245
const auto& adsn = ss.adsname();
246-
name[0] = adsn.m_data[0];
247-
name[1] = adsn.m_data[1];
246+
memcpy_s(name, sizeof(name), adsn.m_data.data(), sizeof(adsn.m_data));
248247
pTail->rbnext = acutBuildList(code, name, 0);
249248
if (pTail->rbnext != nullptr)
250249
pTail = pTail->rbnext;

0 commit comments

Comments
 (0)