summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-04-07 12:42:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-04-07 12:42:41 +0200
commit2cd132eebb84dbcffcf0c20b9354c14f797c29cd (patch)
tree8bf071c79b8d274179884113cb12ac4ce1328847 /runtime/msg.c
parent23a3fdb094cd992b2081db014d583b975c03ca57 (diff)
downloadrsyslog-2cd132eebb84dbcffcf0c20b9354c14f797c29cd.tar.gz
rsyslog-2cd132eebb84dbcffcf0c20b9354c14f797c29cd.tar.xz
rsyslog-2cd132eebb84dbcffcf0c20b9354c14f797c29cd.zip
enhanced nettester tool so that it re-uses it's callers environment
this enables us to work with the "usual" environment tweaks (for debugging and other purposes), without the need for any special handling in nettester itself
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 2ce7843a..91057f97 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -2010,6 +2010,8 @@ finalize_it:
/* set raw message in message object. Size of message is provided.
+ * The function makes sure that the stored rawmsg is properly
+ * terminated by '\0'.
* rgerhards, 2009-06-16
*/
void MsgSetRawMsg(msg_t *pThis, char* pszRawMsg, size_t lenMsg)
@@ -2319,13 +2321,6 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
*pPropLen = sizeof("**INVALID PROPERTY NAME**") - 1;
return UCHAR_CONSTANT("**INVALID PROPERTY NAME**");
}
- /* the following line fixes the symptom, but not the root cause -- at least MSG sometimes
- * returns a size of one too less. To prevent all troubles, we recalculate the sizes based
- * on what we actually got. TODO: remove once root cause is found.
- * rgerhards, 2010-03-23
- */
- bufLen = ustrlen(pRes);
-
/* If we did not receive a template pointer, we are already done... */
if(pTpe == NULL) {