[cvs] bogofilter/src bogotune.c,1.186,1.187
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2004-12-21 01:37:56
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22309 Modified Files: bogotune.c Log Message: Bugfix: do not use strcmp for word_t contents. Breaks when strings contain NUL or have no trailing NUL. Index: bogotune.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v retrieving revision 1.186 retrieving revision 1.187 diff -u -d -r1.186 -r1.187 --- bogotune.c 3 Dec 2004 02:54:40 -0000 1.186 +++ bogotune.c 21 Dec 2004 01:37:44 -0000 1.187 @@ -644,7 +644,7 @@ tokenprop->cnts.bad = data->spamcount; tokenprop->cnts.good = data->goodcount; - if (strcmp((char *)key->text, ".MSG_COUNT") == 0) + if (word_cmps(key, ".MSG_COUNT") == 0) set_msg_counts(data->goodcount, data->spamcount); return 0; |