forked from starnakin/IronGOLEM
update geadline on realloc
This commit is contained in:
parent
5dcace0cbe
commit
d3e788868a
@ -33,7 +33,7 @@ geadline(prompt) {
|
||||
} else {
|
||||
size = size + 1;
|
||||
if (size > capacity) {
|
||||
buf = reallocarray(buf, capacity, capacity * 2);
|
||||
buf = realloc(buf, capacity * 2);
|
||||
if (buf == NULL)
|
||||
return NULL;
|
||||
capacity = capacity * 2;
|
||||
|
Loading…
Reference in New Issue
Block a user