diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-18 14:30:21 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-18 14:30:21 +0200 |
commit | 2f86678c577ee469852ffae35123c4a90b12d214 (patch) | |
tree | e1ff06f634189b2248bae72347cde25d4f5f242d /plugins/imklog | |
parent | 8628312396b1535c41124e499d292f4d1e77d955 (diff) | |
download | rsyslog-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.c | 2 |
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; |