From 9145de293109ba96fc8b97ac59c16c51b992f416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 11 Nov 2004 15:37:01 +0000 Subject: [PATCH] Fix #1818 --- pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pf.c b/pf.c index 621fc55..99c20f7 100644 --- a/pf.c +++ b/pf.c @@ -89,7 +89,7 @@ void process_line (buffer) /* copy buffer since it may point to unwritable date */ len = strlen(buffer); - cp = chk_malloc(len); + cp = chk_malloc(len + 1); strcpy(cp, buffer); buffer = cp; -- 2.7.4