diff options
Diffstat (limited to 'src/xpub.cpp')
-rw-r--r-- | src/xpub.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xpub.cpp b/src/xpub.cpp index b4bc135..d27337e 100644 --- a/src/xpub.cpp +++ b/src/xpub.cpp @@ -177,7 +177,7 @@ void xs::xpub_t::send_unsubscription (unsigned char *data_, size_t size_, xpub_t *self = (xpub_t*) arg_; blob_t unsub (size_ + 1, 0); unsub [0] = 0; - memcpy (&unsub [1], data_, size_); + memcpy ((void*) (unsub.data () + 1), data_, size_); self->pending.push_back (unsub); } } |