summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-10-25 15:50:08 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-10-25 15:50:08 +0000
commit755ec717d9cd6e25767584a528034ce0ab0ee5aa (patch)
tree20fd91683a496a2f8868650f76c7f408c1e271cc /template.c
parent090627b79c1e801bc11c706f62628c7517dd3596 (diff)
downloadrsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.tar.gz
rsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.tar.xz
rsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.zip
dual-threading code looks now fairly complete and stable
Diffstat (limited to 'template.c')
-rw-r--r--template.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/template.c b/template.c
index 13814f93..ceb266fb 100644
--- a/template.c
+++ b/template.c
@@ -329,10 +329,8 @@ static int do_Parameter(char **pp, struct template *pTpl)
/* TODO: RGer: check if we can recover better... (probably not) */
}
- regex_char[0] = '\0';
-
/* Get the regex string for compiling later */
- strncpy(regex_char, p, longitud);
+ memcpy(regex_char, p, longitud);
regex_char[longitud] = '\0';
dprintf("debug: regex detected: '%s'\n",