summaryrefslogtreecommitdiffstats
path: root/runtime/parser.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-16 08:45:57 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-16 08:45:57 +0200
commit1e0e9e67f073a4414ac03599b4ff8994ff30bc05 (patch)
tree947238856e69d5b248b6928ae455a034705dedda /runtime/parser.c
parentcd118cfcc22ea283c8d0112aeedc3f0d8b42d8a8 (diff)
parent3ed4b2cd3ebaf6f4c377ba2e03ef52c2e8a985b6 (diff)
downloadrsyslog-1e0e9e67f073a4414ac03599b4ff8994ff30bc05.tar.gz
rsyslog-1e0e9e67f073a4414ac03599b4ff8994ff30bc05.tar.xz
rsyslog-1e0e9e67f073a4414ac03599b4ff8994ff30bc05.zip
Merge branch 'david-master' into master
Conflicts: ChangeLog runtime/msg.c
Diffstat (limited to 'runtime/parser.c')
-rw-r--r--runtime/parser.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/parser.c b/runtime/parser.c
index 466066e7..3c90c447 100644
--- a/runtime/parser.c
+++ b/runtime/parser.c
@@ -231,14 +231,14 @@ sanitizeMessage(msg_t *pMsg)
* can not handle it! -- rgerhards, 2009-08-26
*/
if(pszMsg[iSrc] == '\0' || bEscapeCCOnRcv) {
- /* we are configured to escape control characters. Please note
- * that this most probably break non-western character sets like
- * Japanese, Korean or Chinese. rgerhards, 2007-07-17
- */
- pDst[iDst++] = cCCEscapeChar;
- pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0300) >> 6);
- pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0070) >> 3);
- pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0007));
+ /* we are configured to escape control characters. Please note
+ * that this most probably break non-western character sets like
+ * Japanese, Korean or Chinese. rgerhards, 2007-07-17
+ */
+ pDst[iDst++] = cCCEscapeChar;
+ pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0300) >> 6);
+ pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0070) >> 3);
+ pDst[iDst++] = '0' + ((pszMsg[iSrc] & 0007));
}
} else {
pDst[iDst++] = pszMsg[iSrc];