NULL terminate the default argument vector. It is passed to execve().

Fixes #2160.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25166 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-04-25 21:32:11 +00:00
parent 977d7846f5
commit 0f75d28cb4
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ receive_handshake_message(handshake_t& handshake)
status_t
Shell::_Spawn(int row, int col, const char *encoding, int argc, const char **argv)
{
const char *kDefaultShellCommand[] = { "/bin/sh", "--login" };
const char *kDefaultShellCommand[] = { "/bin/sh", "--login", NULL };
if (argv == NULL || argc == 0) {
argv = kDefaultShellCommand;