fbuf_grow: use proper size for non-mremap platforms #2080

pull/2083/head
nick black 3 years ago
parent d467367ff5
commit eae4453ea7

@ -76,7 +76,7 @@ fbuf_grow(fbuf* f, size_t n){
return -1;
}
#else
tmp = realloc(f->buf, f->size);
tmp = realloc(f->buf, size);
if(tmp == NULL){
return -1;
}

Loading…
Cancel
Save