use remove instead of unlink to delete plx-file safely

This commit is contained in:
zicodxx 2007-02-06 15:08:05 +00:00
parent c7db8ea672
commit 5df99b88c8
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20070206
--------
main/inferno.c, main/menu.c, main/newdemo.c: fixed -demo and -autodemo switches to work with DEMO_DIR
main/newmenu.c: use remove instead of unlink to delete plx-file safely
20070202
--------

View file

@ -1694,7 +1694,7 @@ ReadFileNames:
// also delete PLX file
sprintf(plxfile,"%.8s.plx",Players[Player_num].callsign);
if (cfexist(plxfile))
unlink(plxfile);
remove(plxfile);
}
if (ret) {