31 | | Just until the next build error... |
| 31 | Just until the next build error and the next patch: |
| 32 | |
| 33 | {{{ |
| 34 | --- tcp_connection.cc.orig 2022-02-23 00:14:50.000000000 +0100 |
| 35 | +++ tcp_connection.cc 2022-02-23 00:17: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 | }}} |
| 47 | |
| 48 | until next error... |