1
0
Fork 0
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:
Tanaka Akira 1999-12-17 10:59:21 +00:00
parent 8f85eb31c9
commit d707a1eb1f

View file

@ -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;