version 1.4, 2008/09/04 18:10:31
|
version 1.5, 2008/09/04 18:22:29
|
|
|
// buffer. | // buffer. |
// To save memory allocations, the overflow buffer is kept around | // To save memory allocations, the overflow buffer is kept around |
// until it becomes to small and needs to be reallocated. | // until it becomes to small and needs to be reallocated. |
|
|
|
if (ttlMsgLen == -1) |
|
{ |
|
// The vsnprintf failed and did not return the bytes needed for the |
|
// message. A fixed message size is used in this case. The |
|
// vsnprintf will write not more than 4096 bytes (including |
|
// trailing '\0') into the buffer. The rest is truncated. |
|
ttlMsgLen = 4096; |
|
} |
|
|
if ((Uint32)ttlMsgLen > _overflowBufferSize) | if ((Uint32)ttlMsgLen > _overflowBufferSize) |
{ | { |
if (_overflowBuffer != NULL ) | if (_overflowBuffer != NULL ) |