X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_getfld.c;h=8a18e783c98a294f1c9ebb07ee36e46accce278c;hb=7e7070820f92e624493d958f44c2bc3787ad48f7;hp=beb6e765245d3ae2dd563cabb2a53cc07c74c815;hpb=f3572e4b56fe8fffc75cb99b82b0cb063772836e;p=mmh diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index beb6e76..8a18e78 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -6,7 +6,7 @@ */ #include -#include +#include /* This module has a long and checkered history. First, it didn't burst maildrops correctly because it considered two CTRL-A:s in a row to be @@ -730,7 +730,8 @@ matchc(int patln, char *pat, int strln, char *str) while (pc != *str++) if (str > es) return 0; - + if (str > es+1) + return 0; sp = str; pp = pat; while (pp < ep && *sp++ == *pp) pp++;