92
92
/* Avoid thrashing memory by doubling buffer size
93
93
** until larger than requested size.
95
97
void TIDY_CALL tidyBufCheckAlloc( TidyBuffer* buf, uint allocSize, uint chunkSize )
103
105
uint allocAmt = chunkSize;
104
106
if ( buf->allocated > 0 )
105
107
allocAmt = buf->allocated;
109
111
bp = (byte*)MemRealloc( buf->bp, allocAmt );