diff options
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index b38b1c0cc..c8ba5a059 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -6340,7 +6340,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) /* It's a simple pattern, so append it to * * the path we have on the command line. */ int minlen = o + strlen(g); - if (minlen > paalloc) + if (minlen >= paalloc) pa = (char *) zrealloc(pa, paalloc = minlen+1); strcpy(pa + o, g); |