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

Diff of /lbbs/src/bwf.c

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

Revision 1.3 by sysadm, Fri Nov 7 06:32:50 2025 UTC Revision 1.4 by sysadm, Fri Nov 7 09:18:58 2025 UTC
# Line 56  int bwf_load(const char *filename) Line 56  int bwf_load(const char *filename)
56                          return -3;                          return -3;
57                  }                  }
58    
59                  if (line[len_line - 1] == '\n')                  while (len_line > 0 && (line[len_line - 1] == '\n' || line[len_line - 1] == '\r'))
60                  {                  {
61                          line[len_line - 1] = '\0';                          line[len_line - 1] = '\0';
62                            len_line--;
63                    }
64    
65                    if (len_line == 0)
66                    {
67                            continue;
68                  }                  }
69    
70                  if (p > bwf_pattern_str)                  if (p > bwf_pattern_str)


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

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