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

Diff of /lbbs/src/common.c

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

Revision 1.12 by sysadm, Fri May 2 03:32:19 2025 UTC Revision 1.13 by sysadm, Sun May 4 14:54:55 2025 UTC
# Line 26  Line 26 
26  // Version information  // Version information
27  char app_version[256] = "LBBS-devel version 1.0";  char app_version[256] = "LBBS-devel version 1.0";
28    
 // Global declaration for enviroment  
 char app_home_dir[256];  
 char app_temp_dir[256];  
   
29  // Global declaration for sockets  // Global declaration for sockets
30  int socket_server;  int socket_server;
31  int socket_client;  int socket_client;
# Line 90  const char *get_time_str(char *string, s Line 86  const char *get_time_str(char *string, s
86                  strncpy(week, "ÐÇÆÚÁù", sizeof(week));                  strncpy(week, "ÐÇÆÚÁù", sizeof(week));
87                  break;                  break;
88          }          }
89          strncat(buffer, week, sizeof(week));          strncat(buffer, week, sizeof(buffer) - 1 - strnlen(buffer, sizeof(buffer)));
90    
91          strncpy(string, buffer, length);          strncpy(string, buffer, length);
92    


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

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