変愚蛮怒のメインリポジトリです
Revision | 229e14253df9fcff84e5893c0d4b43a73ab11b68 (tree) |
---|---|
Time | 2002-01-16 23:19:33 |
Author | habu <habu@0568...> |
Commiter | habu |
remove_auto_dump()のファイルコピー部分で fd_copy() を使うようにした。
@@ -117,14 +117,7 @@ static void remove_auto_dump(cptr orig_file, cptr mark) | ||
117 | 117 | { |
118 | 118 | /* copy contents of temporally file */ |
119 | 119 | |
120 | - tmp_fff = my_fopen(tmp_file, "r"); | |
121 | - orig_fff = my_fopen(orig_file, "w"); | |
122 | - | |
123 | - while (!my_fgets(tmp_fff, buf, 1024)) | |
124 | - fprintf(orig_fff, "%s\n", buf); | |
125 | - | |
126 | - my_fclose(orig_fff); | |
127 | - my_fclose(tmp_fff); | |
120 | + fd_copy(tmp_file, orig_file); | |
128 | 121 | } |
129 | 122 | fd_kill(tmp_file); |
130 | 123 |