--- deliantra/server/common/porting.C 2007/01/15 21:06:18 1.13 +++ deliantra/server/common/porting.C 2007/03/01 12:28:16 1.15 @@ -50,8 +50,6 @@ /* Has to be after above includes so we don't redefine some values */ #include "global.h" -static unsigned int curtmp = 0; - /* This function removes everything in the directory. */ void remove_directory (const char *path) @@ -182,7 +180,8 @@ if (!filename || !*filename) return; - strcpy (buf, filename); + + assign (buf, filename); while ((cp = strchr (cp + 1, (int) '/'))) {