summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-10-25 13:34:14 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-10-25 13:34:14 +0000
commit090627b79c1e801bc11c706f62628c7517dd3596 (patch)
treea1a4098f6a4efe7ba4a97e9e51e723c6abdd21dd /template.c
parentb2887a236458af9c4faace7bbc2fa1921d8e7bee (diff)
downloadrsyslog-090627b79c1e801bc11c706f62628c7517dd3596.tar.gz
rsyslog-090627b79c1e801bc11c706f62628c7517dd3596.tar.xz
rsyslog-090627b79c1e801bc11c706f62628c7517dd3596.zip
fixed some issues with TCP sender
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);