From d12960dd2d44cd28959ccabaad39540e52083dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Sun, 12 Dec 2004 13:29:54 +0000 Subject: [PATCH] fix for potential crasher. we were returning pointer to a local var --- source/blender/blenlib/intern/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);