summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
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",