diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-25 15:50:08 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-25 15:50:08 +0000 |
commit | 755ec717d9cd6e25767584a528034ce0ab0ee5aa (patch) | |
tree | 20fd91683a496a2f8868650f76c7f408c1e271cc /template.c | |
parent | 090627b79c1e801bc11c706f62628c7517dd3596 (diff) | |
download | rsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.tar.gz rsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.tar.bz2 rsyslog-755ec717d9cd6e25767584a528034ce0ab0ee5aa.zip |
dual-threading code looks now fairly complete and stable
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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", |