- bug fix: blender didn't rename temp save file to quit.blend at quit.

also reported on linux...
This commit is contained in:
Ton Roosendaal 2003-11-25 17:36:37 +00:00
parent 4501069c27
commit af12043677

@ -444,11 +444,10 @@ void BIF_write_autosave(void)
static void delete_autosave(void)
{
char tstr[FILE_MAXDIR+FILE_MAXFILE], pidstr[FILE_MAXFILE];
sprintf(pidstr, "%d", abs(getpid()));
BLI_make_file_string("/", tstr, U.tempdir, pidstr);
char tstr[FILE_MAXDIR+FILE_MAXFILE];
get_autosave_location(tstr);
if (BLI_exists(tstr)) {
char str[FILE_MAXDIR+FILE_MAXFILE];
BLI_make_file_string("/", str, U.tempdir, "quit.blend");