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:
parent
efd03cf9e8
commit
77bd05014d
2 changed files with 14 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue