(new_control_record): Use x2nrealloc rather than xrealloc.

This commit is contained in:
Jim Meyering committed 2004-01-04 21:08:47 +00:00
1 parent c34f3b9959
commit 986b0ecbdf
1 file changed
+1 -4
+1 -4
View File
@@ -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;