]> git.marmaro.de Git - mmh/blobdiff - sbr/m_getfld.c
added lint targets for Makefiles and a configure test to find whether lclint or lint...
[mmh] / 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++;