The command line args can easily exceed the maximal tracing buffer
allocation size, which caused the Exec traced entry to crash when printed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0ad9adef62
commit
771491bec8
@ -157,11 +157,14 @@ public:
|
||||
{
|
||||
out.Print("team exec, \"%p\", args:", fPath);
|
||||
|
||||
char* args = fArgs;
|
||||
for (int32 i = 0; !out.IsFull() && i < fArgCount; i++) {
|
||||
out.Print(" \"%s\"", args);
|
||||
args += strlen(args) + 1;
|
||||
}
|
||||
if (fArgs != NULL) {
|
||||
char* args = fArgs;
|
||||
for (int32 i = 0; !out.IsFull() && i < fArgCount; i++) {
|
||||
out.Print(" \"%s\"", args);
|
||||
args += strlen(args) + 1;
|
||||
}
|
||||
} else
|
||||
out.Print(" <too long>");
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user