summaryrefslogtreecommitdiff
path: root/pf.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2004-11-11 15:37:01 +0000
committerKristian Høgsberg <krh@redhat.com>2004-11-11 15:37:01 +0000
commit9145de293109ba96fc8b97ac59c16c51b992f416 (patch)
tree08a5f26731888cdfb18e122d6c38384de4da7245 /pf.c
parentd9e41011e4477f581fb5592ad81fc081e0b606b9 (diff)
Diffstat (limited to 'pf.c')
-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;