31 | | Just until the next build error... |
| 31 | Just 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 | }}} |