summaryrefslogtreecommitdiff
path: root/src/xpub.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.cpm>2012-02-16 10:06:30 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:06:30 +0900
commitfb1209c72bbfd431b61fa4588785586d24ef67c9 (patch)
tree6c33ac55809c64e57e44b347879fe297e894be5e /src/xpub.cpp
parent0d384b7944c20f3389c2be9363afac99783d776a (diff)
More MSVC tests added
Signed-off-by: Martin Sustrik <sustrik@250bpm.cpm>
Diffstat (limited to 'src/xpub.cpp')
-rw-r--r--src/xpub.cpp2
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);
}
}