From 986b0ecbdfdbdd76cd39a92e7b4dd837654b3fc7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jan 2004 21:08:47 +0000 Subject: (new_control_record): Use x2nrealloc rather than xrealloc. --- src/csplit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/csplit.c b/src/csplit.c index dca288408..fd5ce30e7 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -985,10 +985,7 @@ new_control_record (void) struct control *p; if (control_used == control_allocated) - { - control_allocated += ALLOC_SIZE; - controls = xrealloc (controls, control_allocated * sizeof *controls); - } + controls = x2nrealloc (controls, &control_allocated, sizeof *controls); p = &controls[control_used++]; p->regexpr = NULL; p->repeat = 0; -- cgit v1.2.3-70-g09d2