diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 21:46:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 21:46:10 +0400 |
commit | f7b046c108747a32e498f2408b1891a1e719d8d6 (patch) | |
tree | 6dcd13868aba9f86c3a7c13023f71b002385496d /source | |
parent | 62fe4bcd770c1076f8223792e74284726012f6a9 (diff) |
Hopefully fix building with MSVC 2008 from rev 30746.
SCA_PythonController.cpp(303) : error C2133: 'mod_path' : unknown size
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/GameLogic/SCA_PythonController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index b6087d7af53..bcc61b533c3 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -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) { |