/[LeafOK_CVS]/lbbs/src/screen.c
ViewVC logotype

Diff of /lbbs/src/screen.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.32 by sysadm, Mon May 5 09:30:22 2025 UTC Revision 1.33 by sysadm, Mon May 5 11:11:06 2025 UTC
# Line 420  int show_top(char *status) Line 420  int show_top(char *status)
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();
# Line 440  int show_bottom(char *msg) Line 440  int show_bottom(char *msg)
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);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1