summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'template.c')
-rw-r--r--template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/template.c b/template.c
index 41e70b01..13814f93 100644
--- a/template.c
+++ b/template.c
@@ -333,6 +333,7 @@ static int do_Parameter(char **pp, struct template *pTpl)
/* Get the regex string for compiling later */
strncpy(regex_char, p, longitud);
+ regex_char[longitud] = '\0';
dprintf("debug: regex detected: '%s'\n",
regex_char);