summaryrefslogtreecommitdiffstats
path: root/plugins/imklog
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-18 14:30:21 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-18 14:30:21 +0200
commit2f86678c577ee469852ffae35123c4a90b12d214 (patch)
treee1ff06f634189b2248bae72347cde25d4f5f242d /plugins/imklog
parent8628312396b1535c41124e499d292f4d1e77d955 (diff)
downloadrsyslog-2f86678c577ee469852ffae35123c4a90b12d214.tar.gz
rsyslog-2f86678c577ee469852ffae35123c4a90b12d214.tar.xz
rsyslog-2f86678c577ee469852ffae35123c4a90b12d214.zip
optimized TAG handling in msg object
Diffstat (limited to 'plugins/imklog')
-rw-r--r--plugins/imklog/imklog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c
index 24f15510..bf60ebe5 100644
--- a/plugins/imklog/imklog.c
+++ b/plugins/imklog/imklog.c
@@ -101,7 +101,7 @@ enqMsg(uchar *msg, uchar* pszTag, int iFacility, int iSeverity)
MsgSetRcvFrom(pMsg, glbl.GetLocalHostName());
MsgSetRcvFromIP(pMsg, (uchar*)"127.0.0.1");
MsgSetHOSTNAME(pMsg, glbl.GetLocalHostName());
- MsgSetTAG(pMsg, (char*)pszTag);
+ MsgSetTAG(pMsg, pszTag, ustrlen(pszTag));
pMsg->iFacility = LOG_FAC(iFacility);
pMsg->iSeverity = LOG_PRI(iSeverity);
pMsg->bParseHOSTNAME = 0;