From 090627b79c1e801bc11c706f62628c7517dd3596 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 25 Oct 2005 13:34:14 +0000 Subject: fixed some issues with TCP sender --- template.c | 1 + 1 file changed, 1 insertion(+) (limited to 'template.c') 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); -- cgit