Commit da4ed751 authored by Geoff Simmons's avatar Geoff Simmons

bugfix resizing the format output buffer

parent 074c4662
......@@ -1457,7 +1457,7 @@ static inline void
fmt_resize(size_t curlen)
{
if (curlen > obuf_sz) {
obuf_sz >>= 1;
do { obuf_sz <<= 1; } while (curlen > obuf_sz);
obuf = realloc(obuf, obuf_sz);
AN(obuf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment