update fdvm, fixed routine'
This commit is contained in:
@@ -795,7 +795,9 @@ static void realocBuf(int minSize)
|
||||
newSize = minSize + 1;
|
||||
|
||||
Buf_address = UnpBuf = realloc(UnpBuf, newSize);
|
||||
//printf(" realloc buffer from %lld to %lld\n", max_lenght_buf, newSize);
|
||||
memset(UnpBuf + max_lenght_buf, 0, newSize - max_lenght_buf);
|
||||
|
||||
//printf(" realloc buffer from %ld to %ld\n", max_lenght_buf, newSize);
|
||||
max_lenght_buf = newSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user