1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

20750: fix hang with 20742

This commit is contained in:
Peter Stephenson 2005-01-26 12:34:31 +00:00
parent efd03cf9e8
commit 77bd05014d
2 changed files with 14 additions and 2 deletions

View file

@ -67,9 +67,16 @@ void
sizeline(int sz)
{
while (sz > linesz)
zleline =
{
if (linesz < 256)
linesz = 256;
else
linesz *= 4;
zleline =
(ZLE_STRING_T)realloc(zleline,
((linesz *= 4) + 2) * ZLE_CHAR_SIZE);
(linesz + 2) * ZLE_CHAR_SIZE);
}
}
/*