mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
This commit is contained in:
commit
d236a3b78c
@ -93,6 +93,8 @@ pathOfExecutable(System* s, const char** retBuf, unsigned* size)
|
||||
CFBundleRef bundle = CFBundleGetMainBundle();
|
||||
CFURLRef url = CFBundleCopyExecutableURL(bundle);
|
||||
CFStringRef path = CFURLCopyPath(url);
|
||||
path = CFURLCreateStringByReplacingPercentEscapes(kCFAllocatorDefault,
|
||||
path, CFSTR(""));
|
||||
CFIndex pathSize = CFStringGetMaximumSizeOfFileSystemRepresentation(path);
|
||||
char* buffer = reinterpret_cast<char*>(allocate(s, pathSize));
|
||||
if (CFStringGetFileSystemRepresentation(path, buffer, pathSize)) {
|
||||
|
Loading…
Reference in New Issue
Block a user