decrease the size of the buffer for logging
This commit is contained in:
parent
8efe3f7cce
commit
5fb643431e
|
@ -298,7 +298,7 @@ tr_msg( const char * file, int line,
|
|||
const char * fmt, ... )
|
||||
{
|
||||
const int err = errno; /* message logging shouldn't affect errno */
|
||||
char buf[MAX_STACK_ARRAY_SIZE];
|
||||
char buf[1024];
|
||||
va_list ap;
|
||||
|
||||
tr_lockLock( messageLock );
|
||||
|
@ -328,7 +328,7 @@ tr_msg( const char * file, int line,
|
|||
messageQueueTail = &newmsg->next;
|
||||
++messageQueueCount;
|
||||
|
||||
if (messageQueueCount > TR_MAX_MSG_LOG)
|
||||
if( messageQueueCount > TR_MAX_MSG_LOG )
|
||||
{
|
||||
tr_msg_list * old = messageQueue;
|
||||
messageQueue = old->next;
|
||||
|
|
Loading…
Reference in New Issue