From 34a88a7e9a9501593b6fe9f79cc96963c4da7cde Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 15 Oct 2012 16:39:36 +0200 Subject: ratelimit: added linux-like ratelimiter type --- runtime/msg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/msg.c') diff --git a/runtime/msg.c b/runtime/msg.c index d874178b..6ba20de6 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2259,6 +2259,9 @@ void MsgSetMSGoffs(msg_t *pMsg, short offs) ISOBJ_TYPE_assert(pMsg, msg); pMsg->offMSG = offs; if(offs > pMsg->iLenRawMsg) { + if(!(offs - 1 == pMsg->iLenRawMsg)) { + *((char*)(0)) = "abd"; + } assert(offs - 1 == pMsg->iLenRawMsg); pMsg->iLenMSG = 0; } else { -- cgit v1.2.3