From cbba099541d27400ad45083a4b1102b86f9e8dea Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 10 Aug 2017 21:02:16 +0200 Subject: rbuffer almost implemented --- code/core/msgq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/core/msgq.c') diff --git a/code/core/msgq.c b/code/core/msgq.c index 53c55ea..2ba0ed5 100644 --- a/code/core/msgq.c +++ b/code/core/msgq.c @@ -62,7 +62,7 @@ ssize_t ecp_conn_msgq_push(ECPConnection *conn, unsigned char *msg, size_t msg_s if (mtype >= ECP_MAX_MTYPE) return ECP_ERR_MAX_MTYPE; if (msg_size >= ECP_MAX_MSG) return ECP_ERR_MAX_MSG; - if (msg_size < ECP_MIN_MSG) return ECP_ERR_MIN_MSG; + if (msg_size < 1) return ECP_ERR_MIN_MSG; for (i=0; ioccupied[msg_idx]) { -- cgit v1.2.3