/[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.5 by sysadm, Tue Nov 11 00:28:05 2025 UTC
# Line 6  Line 6 
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9    #ifdef HAVE_CONFIG_H
10    #include "config.h"
11    #endif
12    
13  #define PCRE2_CODE_UNIT_WIDTH 8  #define PCRE2_CODE_UNIT_WIDTH 8
14    
15  #include "bwf.h"  #include "bwf.h"
# Line 56  int bwf_load(const char *filename) Line 60  int bwf_load(const char *filename)
60                          return -3;                          return -3;
61                  }                  }
62    
63                  if (line[len_line - 1] == '\n')                  while (len_line > 0 && (line[len_line - 1] == '\n' || line[len_line - 1] == '\r'))
64                  {                  {
65                          line[len_line - 1] = '\0';                          line[len_line - 1] = '\0';
66                            len_line--;
67                    }
68    
69                    if (len_line == 0)
70                    {
71                            continue;
72                  }                  }
73    
74                  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