summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-08-25 15:55:57 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-08-25 15:55:57 +0200
commit1164429974dcd71ef59dededd3fec54162d919dd (patch)
tree7fcf23ec418edc8805524e8a9d16f08242b89f1a
parent8c125325cf239d7303e0f479b284fd1f59c223f7 (diff)
downloadrsyslog-1164429974dcd71ef59dededd3fec54162d919dd.tar.gz
rsyslog-1164429974dcd71ef59dededd3fec54162d919dd.tar.xz
rsyslog-1164429974dcd71ef59dededd3fec54162d919dd.zip
bugfix: invalid double-quoted PRI, among others in outgoing messages
This causes grief with all receivers. Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=147
-rw-r--r--ChangeLog3
-rw-r--r--runtime/msg.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1abea003..74f40fa4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Version 4.4.1 [v4-stable] (rgerhards), 2009-08-??
- features requiring Java are automatically disabled if Java is not
present (thanks to Michael Biebl for his help!)
+- bugfix: invalid double-quoted PRI, among others in outgoing messages
+ This causes grief with all receivers.
+ Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=147
- bugfix: Java testing tools were required, even if testbench was disabled
This resulted in build errors if no Java was present on the build system,
even though none of the selected option actually required Java.
diff --git a/runtime/msg.c b/runtime/msg.c
index 22f81f5d..e26fe5ee 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -751,7 +751,7 @@ static inline char *getPRI(msg_t *pM)
*/
MsgLock(pM);
if(pM->bufPRI[0] == '\0') {
- snprintf((char*)pM->bufPRI, sizeof(pM->bufPRI), "<%d>", getPRIi(pM));
+ snprintf((char*)pM->bufPRI, sizeof(pM->bufPRI), "%d", getPRIi(pM));
}
MsgUnlock(pM);