| 420 |
{ |
{ |
| 421 |
char buffer[LINE_BUFFER_LEN]; |
char buffer[LINE_BUFFER_LEN]; |
| 422 |
|
|
| 423 |
str_space(buffer, 20 - strlen(BBS_current_section_name)); |
str_space(buffer, 20 - strnlen(BBS_current_section_name, sizeof(BBS_current_section_name))); |
| 424 |
|
|
| 425 |
moveto(1, 0); |
moveto(1, 0); |
| 426 |
clrtoeol(); |
clrtoeol(); |
| 440 |
struct tm *tm_online; |
struct tm *tm_online; |
| 441 |
|
|
| 442 |
get_time_str(str_time, sizeof(str_time)); |
get_time_str(str_time, sizeof(str_time)); |
| 443 |
str_space(buffer, 33 - strlen(BBS_username)); |
str_space(buffer, 33 - strnlen(BBS_username, sizeof(BBS_username))); |
| 444 |
|
|
| 445 |
time_online = time(0) - BBS_login_tm; |
time_online = time(0) - BBS_login_tm; |
| 446 |
tm_online = gmtime(&time_online); |
tm_online = gmtime(&time_online); |