Changed the temporary buffer to be static to avoid using that much stack. Replaced wrong maximum buffer length (oops).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17137 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2006-04-16 10:56:00 +00:00
parent 415c63bee2
commit b026647574

View File

@ -829,8 +829,8 @@ flush_pending_repeats(void)
int32 length;
if (sMessageRepeatCount > 1) {
char temp[128];
length = snprintf(temp, OUTPUT_BUFFER_SIZE,
static char temp[40];
length = snprintf(temp, sizeof(temp),
"Last message repeated %ld times.\n", sMessageRepeatCount);
if (sSerialDebugEnabled)