diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 17:14:42 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 17:14:42 +0200 |
commit | b2fa740b9ab5fb9e85309b3307f3fca21f625ab1 (patch) | |
tree | 0cf84e30d570bca9ccbbd695484171c0c820cc4e /tools/syslogd.c | |
parent | 662ad3e4bf8dbd317d18aa1afcbf3e8b9e424506 (diff) | |
download | rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.gz rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.xz rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.zip |
optimized TAG handling
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r-- | tools/syslogd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index faa793fb..6f264e5e 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -609,7 +609,7 @@ static inline rsRetVal printline(uchar *hname, uchar *hnameIP, uchar *msg, int f * being the local host). rgerhards 2004-11-16 */ if((pMsg->msgFlags & PARSE_HOSTNAME) == 0) - MsgSetHOSTNAME(pMsg, hname, strlen(hname)); + MsgSetHOSTNAME(pMsg, hname, ustrlen(hname)); MsgSetRcvFrom(pMsg, hname); MsgSetAfterPRIOffs(pMsg, p - msg); CHKiRet(MsgSetRcvFromIP(pMsg, hnameIP)); @@ -1113,7 +1113,7 @@ int parseRFCSyslogMsg(msg_t *pMsg, int flags) /* HOSTNAME */ if(bContParse) { parseRFCField(&p2parse, pBuf); - MsgSetHOSTNAME(pMsg, pBuf, strlen(pBuf)); + MsgSetHOSTNAME(pMsg, pBuf, ustrlen(pBuf)); } /* APP-NAME */ @@ -1267,8 +1267,7 @@ int parseLegacySyslogMsg(msg_t *pMsg, int flags) */ bufParseTAG[i] = '\0'; /* terminate string */ MsgSetTAG(pMsg, bufParseTAG, i); - } else { - /* we enter this code area when the user has instructed rsyslog NOT + } else {/* we enter this code area when the user has instructed rsyslog NOT * to parse HOSTNAME and TAG - rgerhards, 2006-03-13 */ if(!(flags & INTERNAL_MSG)) { |