OSDN Git Service

ファイルをcloseせずにremoveしていた場所をcloseするように修正。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 25 Jan 2002 17:52:48 +0000 (17:52 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 25 Jan 2002 17:52:48 +0000 (17:52 +0000)
src/cmd4.c
src/report.c

index 60a38c2..5ab0672 100644 (file)
@@ -5133,6 +5133,9 @@ cptr make_screen_dump(void)
                strcat(screen_buf, buf);
        }
 
+       /* Close the file */
+       my_fclose(fff);
+
        /* Remove the file */
        fd_kill(file_name);
 
index 7a5497d..4c195c4 100644 (file)
@@ -239,6 +239,9 @@ static errr make_dump(BUF* dumpbuf)
                (void)buf_append(dumpbuf, buf, strlen(buf));
        }
 
+       /* Close the file */
+       my_fclose(fff);
+
        /* Remove the file */
        fd_kill(file_name);