From 972bb8cd04fee8866456948d68faefa97009048e Mon Sep 17 00:00:00 2001 From: rusty Date: Tue, 19 Sep 2000 07:01:46 +0000 Subject: Fix allocation (base new alloc on current size, not original size). --- libiptc/libiptc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiptc') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 55edbc6..a0f12e6 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -730,7 +730,7 @@ insert_rules(unsigned int num_rules, unsigned int rules_size, } newh = alloc_handle((*handle)->info.name, - (*handle)->info.size + rules_size, + (*handle)->entries.size + rules_size, (*handle)->info.num_entries + num_rules); if (!newh) return 0; -- cgit v1.2.3