mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
90fb38e82f
commit
aa2e0cc17a
4 changed files with 38 additions and 28 deletions
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue