summaryrefslogtreecommitdiffstats
path: root/plugins/imudp/imudp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-25 14:20:45 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-25 14:20:45 +0200
commita853542b76cdd5604f11aa431867b9693b16e45f (patch)
treee19337d9e942ee0bc62fb08a60e0470b4868a344 /plugins/imudp/imudp.c
parent1a0b77dc7154deea77dc4ca6417ff5ff62ff2ce7 (diff)
parentb9549380270fa68e27e8ee3f049c7d34156a85ff (diff)
downloadrsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.tar.gz
rsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.tar.bz2
rsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.zip
Merge branch 'master' into solaris
Diffstat (limited to 'plugins/imudp/imudp.c')
-rw-r--r--plugins/imudp/imudp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index c7e8c1d4..f3448095 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -43,6 +43,7 @@
#include "msg.h"
#include "parser.h"
#include "datetime.h"
+#include "unicode-helper.h"
MODULE_TYPE_INPUT
@@ -219,11 +220,11 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted,
CHKmalloc(pMsg->pszRawMsg = malloc(sizeof(uchar)* lenRcvBuf));
memcpy(pMsg->pszRawMsg, pRcvBuf, lenRcvBuf);
pMsg->iLenRawMsg = lenRcvBuf;
- MsgSetInputName(pMsg, "imudp");
+ MsgSetInputName(pMsg, UCHAR_CONSTANT("imudp"));
MsgSetFlowControlType(pMsg, eFLOWCTL_NO_DELAY);
pMsg->msgFlags = NEEDS_PARSING | PARSE_HOSTNAME;
pMsg->bParseHOSTNAME = 1;
- MsgSetRcvFrom(pMsg, (char*)fromHost);
+ MsgSetRcvFrom(pMsg, fromHost);
CHKiRet(MsgSetRcvFromIP(pMsg, fromHostIP));
CHKiRet(submitMsg(pMsg));
}