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

Diff of /lbbs/src/lml.c

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

Revision 1.53 by sysadm, Fri Dec 19 14:08:44 2025 UTC Revision 1.54 by sysadm, Fri Dec 19 14:52:34 2025 UTC
# Line 187  int lml_init(void) Line 187  int lml_init(void)
187    
188          for (i = 0; i < lml_tag_count; i++)          for (i = 0; i < lml_tag_count; i++)
189          {          {
190                  for (j = 0; j < LML_TAG_NAME_BUF_LEN - 1 && lml_tag_def[i].tag_name[j] != '\0'; j++)                  for (j = 0; j < sizeof(tag_name_buf) - 1 && lml_tag_def[i].tag_name[j] != '\0'; j++)
191                  {                  {
192                          tag_name_buf[j] = (char)tolower(lml_tag_def[i].tag_name[j]);                          tag_name_buf[j] = (char)tolower(lml_tag_def[i].tag_name[j]);
193                  }                  }
# Line 443  int lml_render(const char *str_in, char Line 443  int lml_render(const char *str_in, char
443                                  tag_name_pos++;                                  tag_name_pos++;
444                          }                          }
445    
446                          for (k = 0; k < LML_TAG_NAME_BUF_LEN - 1 && tag_name_pos + k < tag_end_pos; k++)                          for (k = 0; k < sizeof(tag_name_buf) - 1 && tag_name_pos + k < tag_end_pos; k++)
447                          {                          {
448                                  if (str_in[tag_name_pos + k] == ' ' || str_in[tag_name_pos + k] == ']')                                  if (str_in[tag_name_pos + k] == ' ' || str_in[tag_name_pos + k] == ']')
449                                  {                                  {


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

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