Skip to content

Commit

Permalink
Merge pull request #5 from ddRenrek/udpBufferCreationFix
Browse files Browse the repository at this point in the history
corrected construction of shared ptr of type std::string
  • Loading branch information
lganzzzo authored Feb 16, 2022
2 parents f6efcb7 + fc78d09 commit 21aa899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oatpp-ssdp/UdpStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ v_io_size UdpStream::populate() {
}

buf.resize(rc);
m_inBuffer = std::make_shared<std::string>(buf.data(), rc, true);
m_inBuffer = std::make_shared<std::string>(buf.data(), rc);
m_in.reset(m_inBuffer, (p_char8)m_inBuffer->data(), m_inBuffer->size());

oatpp::data::stream::Context::Properties props;
Expand Down

0 comments on commit 21aa899

Please sign in to comment.