From dfb1395fa577d04d9d4bcf2d9ddddd4cea36570a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 13 Feb 2011 10:28:40 +0000 Subject: [PATCH] Fix #26064: blenderplayer is broken This changes were forgotten in svn rev34810. Should work fine now. --- source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index a3dc9a588c9..d1039d5c01c 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -108,7 +108,7 @@ extern char datatoc_bfont_ttf[]; 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 @@ int main(int argc, char** argv) 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) /*