--- deliantra/server/common/porting.C 2007/01/15 21:06:18 1.13 +++ deliantra/server/common/porting.C 2007/05/17 21:32:08 1.16 @@ -1,5 +1,5 @@ /* - * CrossFire, A Multiplayer game for X-windows + * CrossFire, A Multiplayer game * * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team * Copyright (C) 2002 Mark Wedel & Crossfire Development Team @@ -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) '/'))) {