From: Jim Meyering Date: Sun, 4 Jan 2004 21:08:47 +0000 (+0000) Subject: (new_control_record): Use x2nrealloc rather than xrealloc. X-Git-Tag: v5.1.1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986b0ecbdfdbdd76cd39a92e7b4dd837654b3fc7;p=thirdparty%2Fcoreutils.git (new_control_record): Use x2nrealloc rather than xrealloc. --- diff --git a/src/csplit.c b/src/csplit.c index dca288408c..fd5ce30e7a 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;