From cd7e5f0e47f2558f061a73a4f5e9d696901961b2 Mon Sep 17 00:00:00 2001 From: Ding Li Date: Wed, 30 Aug 2017 10:15:46 +0800 Subject: [PATCH] Only resize target array when the array size is smaller than ZmqMsg --- Include/Zmq/ZmqMsg.mqh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/Zmq/ZmqMsg.mqh b/Include/Zmq/ZmqMsg.mqh index 3d5ffa3..550d03b 100644 --- a/Include/Zmq/ZmqMsg.mqh +++ b/Include/Zmq/ZmqMsg.mqh @@ -117,7 +117,7 @@ void ZmqMsg::getData(uchar &data[]) { size_t size=size(); intptr_t src=data(); - ArrayResize(data,(int)size); + if(ArraySize(data)