Changes between Version 2 and Version 3 of Ticket #60852, comment 10


Ignore:
Timestamp:
Feb 22, 2022, 11:50:53 PM (3 years ago)
Author:
nospam2000 (Michael Dreher)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60852, comment 10

    v2 v3  
    2929}}}
    3030
    31 Just until the next build error...
     31Just until the next build error and patch:
     32
     33{{{
     34--- tcp_connection.cc.orig      2022-02-23 00:14:50.000000000 +0100
     35+++ tcp_connection.cc   2022-02-23 00:45:49.000000000 +0100
     36@@ -45,7 +45,7 @@
     37     size_t len = pmt::blob_length(vector);
     38
     39     // Asio async_write() requires the buffer to remain valid until the handler is called.
     40-    std::shared_ptr<char[]> txbuf(new char[len]);
     41+    std::shared_ptr<char> txbuf(new char[len]);
     42
     43     size_t temp = 0;
     44     memcpy(txbuf.get(), pmt::uniform_vector_elements(vector, temp), len);
     45
     46}}}