Another attempt at getting buffer growth right

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26645 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-06-13 14:19:23 +00:00
parent 80c87c0a06
commit 97b5e1c179

View file

@ -723,14 +723,11 @@ if (dst == 0) \
* reset the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr = buf - bsize; \
if (extra == 0) \
ptr = buf - dpos; \
bsize = dpos + BUFSIZ; \
if (extra != 0) \
{ \
bsize += BUFSIZ; \
} \
else \
{ \
bsize += BUFSIZ-1; \
bsize--; \
} \
} \
else if (zone == 0) \
@ -1247,14 +1244,11 @@ if (dst == 0) \
* reset the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr = buf - bsize; \
if (extra == 0) \
ptr = buf - dpos; \
bsize = dpos + BUFSIZ; \
if (extra != 0) \
{ \
bsize += BUFSIZ; \
} \
else \
{ \
bsize += BUFSIZ-1; \
bsize--; \
} \
} \
else if (zone == 0) \