Enlarge threads and ports KMessage notification stack buffers

They were too small for all the fields added. This is why the system
profiler skipped "thread added" notifications.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2011-11-07 19:22:02 +00:00
parent 40287cba78
commit fae2ce1945
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ PortNotificationService::PortNotificationService()
void void
PortNotificationService::Notify(uint32 opcode, port_id port) PortNotificationService::Notify(uint32 opcode, port_id port)
{ {
char eventBuffer[64]; char eventBuffer[128];
KMessage event; KMessage event;
event.SetTo(eventBuffer, sizeof(eventBuffer), PORT_MONITOR); event.SetTo(eventBuffer, sizeof(eventBuffer), PORT_MONITOR);
event.AddInt32("event", opcode); event.AddInt32("event", opcode);
+1 -1
View File
@@ -121,7 +121,7 @@ public:
void Notify(uint32 eventCode, team_id teamID, thread_id threadID, void Notify(uint32 eventCode, team_id teamID, thread_id threadID,
Thread* thread = NULL) Thread* thread = NULL)
{ {
char eventBuffer[128]; char eventBuffer[180];
KMessage event; KMessage event;
event.SetTo(eventBuffer, sizeof(eventBuffer), THREAD_MONITOR); event.SetTo(eventBuffer, sizeof(eventBuffer), THREAD_MONITOR);
event.AddInt32("event", eventCode); event.AddInt32("event", eventCode);