| 42 |
int i = 0; |
int i = 0; |
| 43 |
int j = 0; |
int j = 0; |
| 44 |
char buffer[LINE_BUFFER_LEN]; |
char buffer[LINE_BUFFER_LEN]; |
| 45 |
|
char temp[LINE_BUFFER_LEN]; |
| 46 |
char screen_filename[FILE_PATH_LEN]; |
char screen_filename[FILE_PATH_LEN]; |
| 47 |
char *p = NULL; |
char *p = NULL; |
| 48 |
char *q = NULL; |
char *q = NULL; |
| 84 |
{ |
{ |
| 85 |
if (p_menu != NULL) |
if (p_menu != NULL) |
| 86 |
{ |
{ |
| 87 |
log_error("Begin new menu without end the prior one, in menu config line %d\n", fin_line); |
log_error("Incomplete menu definition in menu config line %d\n", fin_line); |
| 88 |
return -1; |
return -1; |
| 89 |
} |
} |
| 90 |
p_menu = (MENU *)malloc(sizeof(MENU)); |
p_menu = (MENU *)malloc(sizeof(MENU)); |
| 522 |
{ |
{ |
| 523 |
fin_line++; |
fin_line++; |
| 524 |
|
|
| 525 |
p = strtok_r(buffer, MENU_CONF_DELIM_WITH_SPACE, &saveptr); |
strncpy(temp, buffer, sizeof(temp)); // Duplicate line for strtok_r |
| 526 |
|
p = strtok_r(temp, MENU_CONF_DELIM_WITH_SPACE, &saveptr); |
| 527 |
if (p != NULL && *p == '%') // END of menu screen |
if (p != NULL && *p == '%') // END of menu screen |
| 528 |
{ |
{ |
| 529 |
break; |
break; |