diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 8497138039c..dc5ecc45640 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -511,7 +511,9 @@ ns_relocate (const char *epath) | |||
| 511 | NSBundle *bundle = [NSBundle mainBundle]; | 511 | NSBundle *bundle = [NSBundle mainBundle]; |
| 512 | NSString *root = [bundle bundlePath]; | 512 | NSString *root = [bundle bundlePath]; |
| 513 | NSString *original = [NSString stringWithUTF8String:epath]; | 513 | NSString *original = [NSString stringWithUTF8String:epath]; |
| 514 | NSString *fixedPath = [NSString pathWithComponents:@[root, original]]; | 514 | NSString *fixedPath = [NSString pathWithComponents: |
| 515 | [NSArray arrayWithObjects: | ||
| 516 | root, original, nil]]; | ||
| 515 | NSFileManager *fileManager = [NSFileManager defaultManager]; | 517 | NSFileManager *fileManager = [NSFileManager defaultManager]; |
| 516 | 518 | ||
| 517 | if (![original isAbsolutePath] | 519 | if (![original isAbsolutePath] |