diff options
-rw-r--r-- | mbbsd/bbs.c | 2 | ||||
-rw-r--r-- | mbbsd/read.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d9a0d4a8..de6a385a 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -340,7 +340,7 @@ do_select(int ent, fileheader_t * fhdr, char *direct) brc_initial_board(bname); set_board(); - setbdir(direct, currboard); + setbdir(currdirect, currboard); move(1, 0); clrtoeol(); diff --git a/mbbsd/read.c b/mbbsd/read.c index 38f3cd83..a0302cdf 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -825,7 +825,7 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey setbottomtotal(currbid); last_line = get_num_records(currdirect, FHSZ); } - sprintf(directbottom, "%s.bottom", direct); + sprintf(directbottom, "%s.bottom", currdirect); bottom_line = last_line; last_line += (n_bottom = getbottomtotal(currbid)); } @@ -1008,6 +1008,7 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey else #endif { + sprintf(directbottom, "%s.bottom", direct); entries = get_records(currdirect, headers, FHSZ, recbase, p_lines); if( entries>=0 && entries<p_lines && n_bottom) |