diff options
Diffstat (limited to 'Src/glob.c')
-rw-r--r-- | Src/glob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/glob.c b/Src/glob.c index 75509fee5..443262dc4 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -2291,7 +2291,7 @@ igetmatch(char **sp, Patprog p, int fl, int n, char *replstr) for (; t < s + l; t++, patoffset++) { /* Find the longest match from this position. */ set_pat_start(p, t-s); - if (pattry(p, t) && patinput > t) { + if (pattry(p, t)) { char *mpos = patinput; if (!(fl & SUB_LONG) && !(p->flags & PAT_PURES)) { char *ptr; @@ -2371,7 +2371,7 @@ igetmatch(char **sp, Patprog p, int fl, int n, char *replstr) if (t > s && t[-1] == Meta) t--; set_pat_start(p, t-s); - if (pattry(p, t) && patinput > t && !--n) { + if (pattry(p, t) && !--n) { /* Found the longest match */ char *mpos = patinput; if (!(fl & SUB_LONG) && !(p->flags & PAT_PURES)) { |