diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-06 19:28:22 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-06 19:28:22 +0200 |
commit | 8e76a0521bee36e02e8bce2e97fa3d2aa67130da (patch) | |
tree | 89ac19c771e48cdf5ccc1ce3a2bacc3f56f0bce5 /runtime/wtp.c | |
parent | 2471dc2f1fba85b23bc5c89a9234ae320642484d (diff) | |
download | rsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.tar.gz rsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.tar.bz2 rsyslog-8e76a0521bee36e02e8bce2e97fa3d2aa67130da.zip |
some minor cleanup
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r-- | runtime/wtp.c | 3 |
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)); } |