X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_getfld.c;h=1332405be483df1293df3633c7af1f0d8a7480e0;hb=e345f8fdce3a18cab73f3edf65ca60f8357efda0;hp=beb6e765245d3ae2dd563cabb2a53cc07c74c815;hpb=f3572e4b56fe8fffc75cb99b82b0cb063772836e;p=mmh diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index beb6e76..1332405 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -3,10 +3,14 @@ * m_getfld.c -- read/parse a message * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #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 +734,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++;