1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

33038: Fix {^@..a} hanging

This commit is contained in:
Mikael Magnusson 2014-08-20 23:40:21 +02:00
parent e5b504b975
commit 33ad7174f6
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-08-21 Mikael Magnusson <mikachu@gmail.com>
* 33038: Src/glob.c: Fix {a..b} expansion hanging when either
endpoint is a literal NUL character
2014-08-20 Barton E. Schaefer <schaefer@zsh.org>
* Lokesh Mandvekar: 33032: Completion/Linux/Command/_docker,

View file

@ -2219,7 +2219,7 @@ xpandbraces(LinkList list, LinkNode *np)
uremnode(list, node);
strp = str - str3;
lenalloc = strp + strlen(str2+1) + 1;
for (; cend >= cstart; cend--) {
do {
#ifdef MULTIBYTE_SUPPORT
char *ncptr;
int nclen;
@ -2239,7 +2239,7 @@ xpandbraces(LinkList list, LinkNode *np)
insertlinknode(list, last, p);
if (rev) /* decreasing: add in reverse order. */
last = nextnode(last);
}
} while (cend-- > cstart);
*np = nextnode(olast);
return;
}