fix for potential crasher. we were returning pointer to a local var

This commit is contained in:
Jean-Luc Peurière 2004-12-12 13:29:54 +00:00
parent 91c3cffbcc
commit d12960dd2d

@ -871,7 +871,7 @@ void BLI_where_am_i(char *fullname, char *name)
char* BLI_getbundle(void) { char* BLI_getbundle(void) {
CFURLRef bundleURL; CFURLRef bundleURL;
CFStringRef pathStr; CFStringRef pathStr;
char path[MAXPATHLEN]; static char path[MAXPATHLEN];
CFBundleRef mainBundle = CFBundleGetMainBundle(); CFBundleRef mainBundle = CFBundleGetMainBundle();
bundleURL = CFBundleCopyBundleURL(mainBundle); bundleURL = CFBundleCopyBundleURL(mainBundle);