Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Mar 6, 2024
1 parent ca5f222 commit d4c4dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/src/DepUsrSCTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ void DepUsrSCTP::SendSctpData(RTC::SctpAssociation* sctpAssociation, uint8_t* da
// the callback execution finishes. So we have to mem copy it.
auto& item = store.items.emplace_back();

item.data = new uint8_t[len];
item.len = len;
item.data = new uint8_t[len];
item.len = len;
std::memcpy(item.data, data, len);

// Invoke UV async send.
Expand Down

0 comments on commit d4c4dd6

Please sign in to comment.