From 18dddf7ef5769934cf2209791d4c1b3406a50f0a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 28 Jul 1999 17:04:07 +0000 Subject: zsh-workers:7309 --- Src/Zle/zle_tricky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.4.1