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