[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30760] trunk/blender/source/gameengine/ GameLogic/SCA_PythonController.cpp: Hopefully fix building with MSVC 2008 from rev 30746.

Campbell Barton ideasman42 at gmail.com
Mon Jul 26 19:46:10 CEST 2010


Revision: 30760
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30760
Author:   campbellbarton
Date:     2010-07-26 19:46:10 +0200 (Mon, 26 Jul 2010)

Log Message:
-----------
Hopefully fix building with MSVC 2008 from rev 30746.

SCA_PythonController.cpp(303) : error C2133: 'mod_path' : unknown size

Revision Links:
--------------
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30746

Modified Paths:
--------------
    trunk/blender/source/gameengine/GameLogic/SCA_PythonController.cpp

Modified: trunk/blender/source/gameengine/GameLogic/SCA_PythonController.cpp
===================================================================
--- trunk/blender/source/gameengine/GameLogic/SCA_PythonController.cpp	2010-07-26 16:48:02 UTC (rev 30759)
+++ trunk/blender/source/gameengine/GameLogic/SCA_PythonController.cpp	2010-07-26 17:46:10 UTC (rev 30760)
@@ -300,10 +300,10 @@
 	Py_XDECREF(m_function);
 	m_function= NULL;
 	
-	char mod_path[m_scriptText.Length()+1];
+	STR_String mod_path_str= m_scriptText; /* just for storage, use C style string access */
+	char *mod_path= mod_path_str.Ptr();
 	char *function_string;
 
-	strcpy(mod_path, m_scriptText.Ptr());
 	function_string= strrchr(mod_path, '.');
 	
 	if(function_string == NULL) {





More information about the Bf-blender-cvs mailing list