[cvs] bogofilter/src token.c,1.86,1.87
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2004-06-30 02:07:27
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11534/src Modified Files: token.c Log Message: Use memmove rather than memcpy because areas overlap. Fixes valgrind complaint. Index: token.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/token.c,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- token.c 30 Jun 2004 01:55:09 -0000 1.86 +++ token.c 30 Jun 2004 02:07:19 -0000 1.87 @@ -175,7 +175,7 @@ case MSGADDR: /* trim brackets */ yylval->leng -= 2; - memcpy(yylval->text, yylval->text+1, yylval->leng); + memmove(yylval->text, yylval->text+1, yylval->leng); Z(yylval->text[yylval->leng]); /* for easier debugging - removable */ /* if top level, no address, not localhost, .... */ if (token_prefix == w_recv && |