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:
parent
e5aa9e13f4
commit
9765d74881
@ -1425,7 +1425,7 @@ BApplication::_ArgvReceived(BMessage *message)
|
||||
if (message->FindInt32("argc", &argc) == B_OK && argc > 0) {
|
||||
// allocate a NULL terminated array
|
||||
argv = new char*[argc + 1];
|
||||
memset(argv, 0, sizeof(char*) * argc + 1);
|
||||
memset(argv, 0, sizeof(char*) * (argc + 1));
|
||||
|
||||
// copy the arguments
|
||||
for (int32 i = 0; error == B_OK && i < argc; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user