summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pf.c2
1 files changed, 1 insertions, 1 deletions
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;