1 2 3 4 5 6 7 8 9 10 11 12 13
--- base/Config.cpp +++ base/Config.cpp @@ -423,8 +423,8 @@ m_sDataDir = string(EM_DATADIR) + "/"; m_sExeDir = "./"; if ( *( m_sDataDir.c_str() ) != '/' ) { - char* ptr=0; - char* ptrw = 0; + const char* ptr=0; + const char* ptrw = 0; //cout<<"relative to exe file"<<endl; ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32 #ifdef WIN32