use xrealloc instead of realloc
This commit is contained in:
parent
6057d62524
commit
9e13a384c0
|
@ -176,7 +176,7 @@ static struct line *line_realloc(int len, struct line *line)
|
|||
while (size < len)
|
||||
size <<= 1;
|
||||
|
||||
line->data = realloc(line->data, size);
|
||||
line->data = xrealloc(line->data, size);
|
||||
return line;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue