summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-05 16:44:10 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-05 16:44:10 +0800
commitc5ed409d13de8855a384e32b4184877bf5351a6d (patch)
tree7ed5678118c3d093b50e1692a014aa5e2f25e461
parentd2a28e0fdb31e76baf61157e6679fc358c482b7a (diff)
downloadpttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar.gz
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar.bz2
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar.lz
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar.xz
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.tar.zst
pttbbs-c5ed409d13de8855a384e32b4184877bf5351a6d.zip
convert .fav4.bak
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3366 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c4
-rw-r--r--mbbsd/fav.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index d5dbe4d5..8afae778 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1069,12 +1069,12 @@ choose_board(int newflag)
switch(c){
case '2':
fav_save();
- setuserfile(fname, FAV4);
+ setuserfile(fname, FAV);
sprintf(buf, "%s.bak", fname);
Copy(fname, buf);
break;
case '3':
- setuserfile(fname, FAV4);
+ setuserfile(fname, FAV);
sprintf(buf, "%s.bak", fname);
if (!dashf(buf)){
vmsg("你沒有備份你的最愛喔");
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index b8c09d93..b93c90e1 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -499,6 +499,10 @@ int fav_load(void)
fav4_read_favrec(frp, fp);
fav_stack_push_fav(fp);
fclose(frp);
+
+ fav_save();
+ setuserfile(old, FAV ".bak");
+ Copy(buf, old);
}
else
#endif