Just spotted a mistake in my previous commit... and while I am at it, I can
properly credit James Woodcock, who debugged this problem and whom I forgot to mention in my previous commit. Sorry! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25495 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1425,7 +1425,7 @@ BApplication::_ArgvReceived(BMessage *message)
|
|||||||
if (message->FindInt32("argc", &argc) == B_OK && argc > 0) {
|
if (message->FindInt32("argc", &argc) == B_OK && argc > 0) {
|
||||||
// allocate a NULL terminated array
|
// allocate a NULL terminated array
|
||||||
argv = new char*[argc + 1];
|
argv = new char*[argc + 1];
|
||||||
memset(argv, 0, sizeof(char*) * argc + 1);
|
memset(argv, 0, sizeof(char*) * (argc + 1));
|
||||||
|
|
||||||
// copy the arguments
|
// copy the arguments
|
||||||
for (int32 i = 0; error == B_OK && i < argc; i++) {
|
for (int32 i = 0; error == B_OK && i < argc; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user