• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision229e14253df9fcff84e5893c0d4b43a73ab11b68 (tree)
Time2002-01-16 23:19:33
Authorhabu <habu@0568...>
Commiterhabu

Log Message

remove_auto_dump()のファイルコピー部分で fd_copy() を使うようにした。

Change Summary

Incremental Difference

--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -117,14 +117,7 @@ static void remove_auto_dump(cptr orig_file, cptr mark)
117117 {
118118 /* copy contents of temporally file */
119119
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);
128121 }
129122 fd_kill(tmp_file);
130123
Show on old repository browser