From 699e310cfd0f991aa02dd5d5157188132f8a17e7 Mon Sep 17 00:00:00 2001 From: Jeff Lawson Date: Tue, 11 Jul 2017 05:45:38 +0000 Subject: [PATCH] update allocated message buffer size to avoid hardcoded number. --- zmq.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq.tcl b/zmq.tcl index 106fea3..3899549 100644 --- a/zmq.tcl +++ b/zmq.tcl @@ -2190,7 +2190,7 @@ critcl::ccommand ::zmq::message {cd ip objc objv} { } } } - msgp = ckalloc(32); + msgp = ckalloc(sizeof(zmq_msg_t)); if (data) { void* buffer = 0; if (size < 0)