summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-06 19:28:22 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-06 19:28:22 +0200
commit8e76a0521bee36e02e8bce2e97fa3d2aa67130da (patch)
tree89ac19c771e48cdf5ccc1ce3a2bacc3f56f0bce5 /runtime/wtp.c
parent2471dc2f1fba85b23bc5c89a9234ae320642484d (diff)
downloadrsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.tar.gz
rsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.tar.xz
rsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.zip
some minor cleanup
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r--runtime/wtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index e37ebddf..ba1f94b3 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -53,6 +53,7 @@
#include "wtp.h"
#include "wti.h"
#include "obj.h"
+#include "unicode-helper.h"
#include "glbl.h"
/* static data */
@@ -438,7 +439,7 @@ wtpWorker(void *arg) /* the arg is actually a wti object, even though we are in
/* set thread name - we ignore if the call fails, has no harsh consequences... */
pszDbgHdr = wtpGetDbgHdr(pThis);
- strncpy(thrdName+3, pszDbgHdr, 20);
+ ustrncpy(thrdName+3, pszDbgHdr, 20);
if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) {
DBGPRINTF("prctl failed, not setting thread name for '%s'\n", wtpGetDbgHdr(pThis));
}