diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-11 01:48:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-11 01:49:09 +0300 |
commit | 535a6cde64bc4f2d3c52d55ae7aa6c5b3078c281 (patch) | |
tree | 76ee58f1604ac2a08926b1c5190dac8e56ab915d | |
parent | 3d677d9190088aa7fe084767a39158a376cd5d63 (diff) |
Cleanup: redundant 'static' variable
Also use BLI_snprintf.
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index 48012bd9e90..9afabdc0b4f 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -212,8 +212,8 @@ static bool get_path_local( /* try EXECUTABLE_DIR/2.5x/folder_name - new default directory for local blender installed files */ #ifdef __APPLE__ /* due new codesign situation in OSX > 10.9.5 we must move the blender_version dir with contents to Resources */ - static char osx_resourses[FILE_MAX]; - sprintf(osx_resourses, "%s../Resources", bprogdir); + char osx_resourses[FILE_MAX]; + BLI_snprintf(osx_resourses, sizeof(osx_resourses), "%s../Resources", bprogdir); /* Remove the '/../' added above. */ BLI_cleanup_path(NULL, osx_resourses); return test_path(targetpath, targetpath_len, osx_resourses, blender_version_decimal(ver), relfolder); |