X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f3572e4b56fe8fffc75cb99b82b0cb063772836e..7379ff1546ba2feaabe8b6463f448ea0bafd69bb:/sbr/m_getfld.c diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index beb6e765..8a18e783 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++;