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

Diff of /lbbs/src/menu.c

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

Revision 1.6 by sysadm, Sun Mar 20 07:39:28 2005 UTC Revision 1.7 by sysadm, Sun Mar 20 14:37:37 2005 UTC
# Line 30  int Line 30  int
30  load_menu (MENU_SET * p_menu_set, const char *conf_file)  load_menu (MENU_SET * p_menu_set, const char *conf_file)
31  {  {
32    FILE *fin, *fout;    FILE *fin, *fout;
33    int i = 0, j, k;    int i = 0, j;
34    char buffer[256], screen_filename[256], temp[256];    char buffer[256], screen_filename[256], temp[256];
35    regmatch_t pmatch[10];    regmatch_t pmatch[10];
36    
# Line 47  load_menu (MENU_SET * p_menu_set, const Line 47  load_menu (MENU_SET * p_menu_set, const
47          case '#':          case '#':
48            break;            break;
49          case '%':          case '%':
50            if (ireg ("^%S_([A-Za-z0-9_]+)", buffer, 1, pmatch) == 0)            if (ireg ("^%S_([A-Za-z0-9_]+)", buffer, 2, pmatch) == 0)
51              {              {
52                strncpy (temp, buffer + pmatch[0].rm_so,                strncpy (temp, buffer + pmatch[1].rm_so,
53                         pmatch[0].rm_eo - pmatch[0].rm_so);                         pmatch[1].rm_eo - pmatch[1].rm_so);
54                temp [pmatch[0].rm_eo - pmatch[0].rm_so] = '\0';                temp [pmatch[1].rm_eo - pmatch[1].rm_so] = '\0';
55                sprintf (screen_filename, "%sMENU_SCR_%s", app_temp_dir, temp);                sprintf (screen_filename, "%sMENU_SCR_%s", app_temp_dir, temp);
56    
57                if ((fout = fopen (screen_filename, "w")) == NULL)                if ((fout = fopen (screen_filename, "w")) == NULL)


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

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