diff options
| author | m0viefreak <m0viefreak.cm@googlemail.com> | 2021-12-24 13:09:25 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@ipost.com> | 2021-12-24 13:09:25 -0800 |
| commit | d82604843bf2b743e04666d4644dd109831252f7 (patch) | |
| tree | 21f6079737718bd23a0c2587beb6590ed085052f | |
| parent | 49658: Fix NULL reference in match code. (diff) | |
| download | zsh-d82604843bf2b743e04666d4644dd109831252f7.tar zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.gz zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.bz2 zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.lz zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.xz zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.zst zsh-d82604843bf2b743e04666d4644dd109831252f7.zip | |
38150: fix off-by-one error in matcher spec parsing
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Zle/compmatch.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ + 2021-12-24 Bart Schaefer <schaefer@zsh.org> + + * m0viefreak: 38150: Src/Zle/compmatch.c: fix off-by-one error + in matcher spec parsing + 2021-12-21 Peter Stephenson <p.stephenson@samsung.com> * 49658: Src/glob.c: Remove erroneous use of NULL pointer for diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 56e5509a4..bb8359f1d 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -1319,7 +1319,7 @@ pattern_match_equivalence(Cpattern lp, convchar_t wind, int wmtp, convchar_t lchr; int lmtp; - if (!PATMATCHINDEX(lp->u.str, wind-1, &lchr, &lmtp)) { + if (!PATMATCHINDEX(lp->u.str, wind, &lchr, &lmtp)) { /* * No equivalent. No possible match; give up. */ |
