summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorrusty <rusty>2000-09-19 07:01:46 +0000
committerrusty <rusty>2000-09-19 07:01:46 +0000
commit972bb8cd04fee8866456948d68faefa97009048e (patch)
tree162203ce13dbf2c69cab5f5eb17ed9a46883dc5d /libiptc
parentfdea843c1a2f16d1c1e22e50d406824e8254edfd (diff)
Fix allocation (base new alloc on current size, not original size).
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libiptc.c2
1 files changed, 1 insertions, 1 deletions
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;