Fixed [NSProcessInfo -processName] and updated places that used it.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-09-03 08:59:07 +00:00
parent 90fb38e82f
commit aa2e0cc17a
4 changed files with 38 additions and 28 deletions

View file

@ -157,7 +157,8 @@ _gnu_process_args(int argc, char *argv[], char *env[])
int i;
/* Getting the process name */
_gnu_processName = [[NSString alloc] initWithCString: argv[0]];
_gnu_processName = [[NSString stringWithCString: argv[0]] lastPathComponent];
RETAIN(_gnu_processName);
/* Copy the argument list */
{