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

Diff of /lbbs/src/section_list_loader.c

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

Revision 1.25 by sysadm, Tue Jun 17 07:43:36 2025 UTC Revision 1.28 by sysadm, Fri Jun 20 09:36:58 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #define _POSIX_C_SOURCE 200809L  
   
17  #include "section_list_loader.h"  #include "section_list_loader.h"
18  #include "article_cache.h"  #include "article_cache.h"
19  #include "bbs.h"  #include "bbs.h"
# Line 135  int load_section_config_from_db(void) Line 133  int load_section_config_from_db(void)
133                                  break;                                  break;
134                          }                          }
135    
136                          strncpy(p_section->sname, row[1], sizeof(p_section->sname) - 1);                          strncpy(p_section->sname, row[0], sizeof(p_section->sname) - 1);
137                          p_section->sname[sizeof(p_section->sname) - 1] = '\0';                          p_section->sname[sizeof(p_section->sname) - 1] = '\0';
138                          strncpy(p_section->stitle, row[1], sizeof(p_section->stitle) - 1);                          strncpy(p_section->stitle, row[1], sizeof(p_section->stitle) - 1);
139                          p_section->stitle[sizeof(p_section->stitle) - 1] = '\0';                          p_section->stitle[sizeof(p_section->stitle) - 1] = '\0';
# Line 684  int section_list_loader_launch(void) Line 682  int section_list_loader_launch(void)
682                          }                          }
683                          else                          else
684                          {                          {
685                                  log_error("Reload section config successfully\n");                                  log_common("Reload section config successfully\n");
686                          }                          }
687                  }                  }
688    


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

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