/[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.6 by sysadm, Fri Nov 21 10:34:10 2025 UTC Revision 1.7 by sysadm, Thu Dec 18 02:56:00 2025 UTC
# Line 91  int bwf_load(const char *filename) Line 91  int bwf_load(const char *filename)
91    
92          fclose(fp);          fclose(fp);
93    
94  #ifdef _DEBUG          log_debug("Debug: bwf_pattern_str: %s\n", bwf_pattern_str);
         log_error("Debug: bwf_pattern_str: %s\n", bwf_pattern_str);  
 #endif  
95    
96          return 0;          return 0;
97  }  }
# Line 172  int check_badwords(char *str, char c_mas Line 170  int check_badwords(char *str, char c_mas
170                          }                          }
171                          else                          else
172                          {                          {
173  #ifdef _DEBUG                                  log_debug("Debug: match pattern #%d of %d at offsets [%d, %d]\n",
                                 log_error("Debug: match pattern #%d of %d at offsets [%d, %d]\n",  
174                                                    i, match_count, ovector[i * 2], ovector[i * 2 + 1] - ovector[i * 2]);                                                    i, match_count, ovector[i * 2], ovector[i * 2 + 1] - ovector[i * 2]);
 #endif  
175                                  memset(str + ovector[i * 2], c_mask, ovector[i * 2 + 1] - ovector[i * 2]);                                  memset(str + ovector[i * 2], c_mask, ovector[i * 2 + 1] - ovector[i * 2]);
176                                  total_match_count++;                                  total_match_count++;
177                                  startoffset = ovector[i * 2 + 1];                                  startoffset = ovector[i * 2 + 1];


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

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