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 Frith-MacDonald 1999-09-03 08:59:07 +00:00
parent 728ed7b08b
commit 818b4aad92
4 changed files with 38 additions and 28 deletions

View file

@ -312,7 +312,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
char *output;
NSString *path, *s;
path = [[NSProcessInfo processInfo] processName];
path = [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
output = objc_find_executable([path cString]);
NSAssert(output, NSInternalInconsistencyException);
path = [NSString stringWithCString: output];