summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-22 09:33:33 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-22 09:33:33 +0100
commit223439934c20f38bc00ec5287124737932d33ddb (patch)
tree83f1b2b82271574ddd503ab1c43049b86817f839 /runtime/msg.c
parent785e0c3c8b00614b6f780f902442025f4558a160 (diff)
parent906ed9df906fe3a52b042929130e6fc9a00b53a8 (diff)
downloadrsyslog-223439934c20f38bc00ec5287124737932d33ddb.tar.gz
rsyslog-223439934c20f38bc00ec5287124737932d33ddb.tar.bz2
rsyslog-223439934c20f38bc00ec5287124737932d33ddb.zip
Merge branch 'master' into master-gt
Conflicts: configure.ac runtime/rsyslog.h
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 68577ad0..c302a050 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1468,6 +1468,14 @@ getRawMsg(msg_t *pM, uchar **pBuf, int *piLen)
}
+/* note: setMSGLen() is only for friends who really know what they
+ * do. Setting an invalid length can be desasterous!
+ */
+void setMSGLen(msg_t *pM, int lenMsg)
+{
+ pM->iLenMSG = lenMsg;
+}
+
int getMSGLen(msg_t *pM)
{
return((pM == NULL) ? 0 : pM->iLenMSG);