diff --git a/Source/script.cpp b/Source/script.cpp index fd4f3b78..c0b9545a 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5881,15 +5881,12 @@ int CEXEBuild::do_add_file(const char *lgss, int attrib, int recurse, int linecn WIN32_FIND_DATA temp; #endif -#ifdef _WIN32 - const char *fspec=lgss+strlen(dir)+!!dir[0]; -#else const char *fspec; if (!strcmp(dir,".") && strncmp(lgss,".",1)) fspec=lgss; else fspec=lgss+strlen(dir)+!!dir[0]; -#endif + strcpy(newfn,lgss); #ifdef _WIN32 DWORD a=GetFileAttributes(lgss);