Revision: 28337
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28337
Author:   broken
Date:     2010-04-22 03:06:59 +0200 (Thu, 22 Apr 2010)

Log Message:
-----------
Fix for bug in r28320, sizeof(pointer) was breaking path functions

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/path_util.c

Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c     2010-04-21 
23:33:51 UTC (rev 28336)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c     2010-04-22 
01:06:59 UTC (rev 28337)
@@ -1312,7 +1312,7 @@
        /* 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;
        }


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to