]> git.saurik.com Git - redis.git/blobdiff - src/cluster.c
BITOP command 10x speed improvement.
[redis.git] / src / cluster.c
index 07552c18ae05e72671152c3719e90bba5e056af0..e87ca45a945fd8ce444a78323e7e2d73743c3cc5 100644 (file)
@@ -902,7 +902,7 @@ void clusterSendPublish(clusterLink *link, robj *channel, robj *message) {
     } else {
         payload = zmalloc(totlen);
         hdr = (clusterMsg*) payload;
-        memcpy(payload,hdr,sizeof(hdr));
+        memcpy(payload,hdr,sizeof(*hdr));
     }
     memcpy(hdr->data.publish.msg.bulk_data,channel->ptr,sdslen(channel->ptr));
     memcpy(hdr->data.publish.msg.bulk_data+sdslen(channel->ptr),