mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
zsh-workers/9098
This commit is contained in:
parent
8f85eb31c9
commit
d707a1eb1f
1 changed files with 4 additions and 1 deletions
|
@ -480,7 +480,10 @@ add(int c)
|
|||
bsiz = newbsiz;
|
||||
#endif
|
||||
|
||||
int newbsiz = bsiz + 32;
|
||||
int newbsiz = bsiz * 2;
|
||||
|
||||
if (newbsiz > inbufct && inbufct > bsiz)
|
||||
newbsiz = inbufct;
|
||||
|
||||
bptr = len + (tokstr = (char *)hrealloc(tokstr, bsiz, newbsiz));
|
||||
bsiz = newbsiz;
|
||||
|
|
Loading…
Reference in a new issue