gcc 3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -504,7 +504,7 @@ void BApplication::DispatchMessage(BMessage* message, BHandler* handler)
|
||||
const char *arg = NULL;
|
||||
error = message->FindString("argv", i, &arg);
|
||||
if (error == B_OK && arg) {
|
||||
argv[i] = new(nothrow) char[strlen(arg) + 1];
|
||||
argv[i] = new(std::nothrow) char[strlen(arg) + 1];
|
||||
if (argv[i])
|
||||
strcpy(argv[i], arg);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user