Hopefully fix building with MSVC 2008 from rev 30746.

SCA_PythonController.cpp(303) : error C2133: 'mod_path' : unknown size
This commit is contained in:
Campbell Barton
2010-07-26 17:46:10 +00:00
parent 62fe4bcd77
commit f7b046c108

View File

@@ -300,10 +300,10 @@ bool SCA_PythonController::Import()
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) {