X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f3572e4b56fe8fffc75cb99b82b0cb063772836e..ea4f02c6acdf50fbc114ea9dc7e2a81f149ea8ca:/sbr/m_getfld.c?ds=sidebyside diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index beb6e765..a667be82 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -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++;