decrease the size of the buffer for logging

This commit is contained in:
Mitchell Livingston 2009-12-05 01:28:42 +00:00
parent 8efe3f7cce
commit 5fb643431e
1 changed files with 2 additions and 2 deletions

View File

@ -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;