This commit is contained in:
iceman1001 2017-12-13 20:02:56 +01:00
parent b734fe5e18
commit 982ece97c6

View file

@ -70,7 +70,6 @@ bool endsWith (char* base, char* str) {
int CmdScriptList(const char *Cmd) { int CmdScriptList(const char *Cmd) {
char const * exedir = get_my_executable_directory(); char const * exedir = get_my_executable_directory();
strcpy(script_directory_path, get_my_executable_directory());
if (exedir == NULL) if (exedir == NULL)
return 0; return 0;
char script_directory_path[strlen(exedir) + strlen(LUA_SCRIPTS_DIRECTORY) + 1]; char script_directory_path[strlen(exedir) + strlen(LUA_SCRIPTS_DIRECTORY) + 1];