diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2004-12-12 16:29:54 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2004-12-12 16:29:54 +0300 |
commit | d12960dd2d44cd28959ccabaad39540e52083dc4 (patch) | |
tree | 359abb12483387f8adf483f8442aaa5b35d2cb52 /source/blender/blenlib | |
parent | 91c3cffbcca1eb8f9090533d7d3c62bc984fe863 (diff) |
fix for potential crasher. we were returning pointer to a local var
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 2bd36658abc..ea666be3e45 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -871,7 +871,7 @@ void BLI_where_am_i(char *fullname, char *name) char* BLI_getbundle(void) { CFURLRef bundleURL; CFStringRef pathStr; - char path[MAXPATHLEN]; + static char path[MAXPATHLEN]; CFBundleRef mainBundle = CFBundleGetMainBundle(); bundleURL = CFBundleCopyBundleURL(mainBundle); |