diff options
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r-- | mbbsd/fav.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 83846ff5..163459cd 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -569,13 +569,8 @@ int fav_save(void) fwrite(&version, sizeof(version), 1, fwp); write_favrec(fwp, fp); - fflush(fwp); - if (!ferror(fwp)) { - fclose(fwp); + if(fclose(fwp)==0) Rename(buf, buf2); - } - else - fclose(fwp); return 0; } |