Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-04-22 05:06:59 +0400
committerMatt Ebb <matt@mke3.net>2010-04-22 05:06:59 +0400
commit27fa4827147f71733784a49e45dfffbb08d8342d (patch)
treee5925fcae3bc35755e8ae0214b32903fa9b10b10 /source/blender/blenlib/intern
parentda700642116c230af05bce405340588fd51234a2 (diff)
Fix for bug in r28320, sizeof(pointer) was breaking path functions
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/path_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 05b1bc5fca7..16de81de897 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1312,7 +1312,7 @@ void BLI_where_am_i(char *fullname, const char *name)
/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */
path = br_find_exe( NULL );
if (path) {
- BLI_strncpy(fullname, path, sizeof(fullname));
+ BLI_strncpy(fullname, path, FILE_MAXDIR+FILE_MAXFILE);
free(path);
return;
}