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:
parent
415c63bee2
commit
b026647574
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user