[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34814] trunk/blender/source/gameengine/ GamePlayer/ghost/GPG_ghost.cpp: Fix #26064: blenderplayer is broken

Sergey Sharybin g.ulairi at gmail.com
Sun Feb 13 11:28:41 CET 2011


Revision: 34814
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34814
Author:   nazgul
Date:     2011-02-13 10:28:40 +0000 (Sun, 13 Feb 2011)
Log Message:
-----------
Fix #26064: blenderplayer is broken

This changes were forgotten in svn rev34810. Should work fine now.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34810

Modified Paths:
--------------
    trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

Modified: trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
===================================================================
--- trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2011-02-13 10:25:12 UTC (rev 34813)
+++ trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2011-02-13 10:28:40 UTC (rev 34814)
@@ -108,7 +108,7 @@
 const int kMinWindowWidth = 100;
 const int kMinWindowHeight = 100;
 
-char bprogname[FILE_MAXDIR+FILE_MAXFILE];
+char bprogname[FILE_MAX];
 
 #ifdef WIN32
 typedef enum 
@@ -362,7 +362,7 @@
 	signal (SIGFPE, SIG_IGN);
 #endif /* __alpha__ */
 #endif /* __linux__ */
-	BLI_where_am_i(bprogname, argv[0]);
+	BLI_where_am_i(bprogname, sizeof(bprogname), argv[0]);
 #ifdef __APPLE__
     // Can't use Carbon right now because of double defined type ID (In Carbon.h and DNA_ID.h, sigh)
     /*




More information about the Bf-blender-cvs mailing list