From 9765d748813573a942a3fb18b3a0ff4775e955f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 14 May 2008 19:51:36 +0000 Subject: [PATCH] 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 --- src/kits/app/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index ec0767df14..d9c57ea778 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -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++) {