summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-15 16:39:36 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-15 16:39:36 +0200
commit34a88a7e9a9501593b6fe9f79cc96963c4da7cde (patch)
treedf742c45987b068beeb12e1cdac8996edd79a86e /runtime/msg.c
parent6ab4666622efeb9944bbf7b6e3581d1372465adb (diff)
downloadrsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.tar.gz
rsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.tar.bz2
rsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.zip
ratelimit: added linux-like ratelimiter type
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c3
1 files changed, 3 insertions, 0 deletions
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 {