]> diplodocus.org Git - nmh/blobdiff - sbr/m_getfld.c
make clean now removes generated bin files.
[nmh] / sbr / m_getfld.c
index beb6e765245d3ae2dd563cabb2a53cc07c74c815..a667be82367f5ab7e27344efb4c7e5978da3346b 100644 (file)
@@ -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++;