diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 2 | ||||
-rw-r--r-- | mbbsd/fav.c | 13 |
2 files changed, 3 insertions, 12 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 6d766ff3..e7658328 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1244,7 +1244,7 @@ choose_board(int newflag) } Copy(buf, fname); fav_free(); - load_brdbuf(); + fav_load(); break; } brdnum = -1; diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 3260230a..b26993ab 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -455,15 +455,6 @@ int fav_save(void) return -1; write_favrec(fd, fp); close(fd); - - /* dirty hack, i hope will find out the reasion */ - if (dashs(buf) == 0) { - FILE *dirty = fopen("dirtyhack.check", "a"); - fprintf(dirty, "[%s] fp:%x datatail:%d - %s", cuser.userid, (int)fp, fp->DataTail, ctime(&now)); - fclose(dirty); - return -1; - } - Rename(buf, buf2); return 0; } @@ -967,8 +958,6 @@ int fav_v3_to_v4(void) if (!dashf(buf)) return -1; - fav4 = (fav_t *)fav_malloc(sizeof(fav_t)); - setuserfile(buf, FAV4); if (dashf(buf)) return 0; @@ -982,6 +971,8 @@ int fav_v3_to_v4(void) return -1; } + fav4 = (fav_t *)fav_malloc(sizeof(fav_t)); + read(fd, &nDatas, sizeof(nDatas)); read(fd, &nLines, sizeof(nLines)); |