Fix obscure crasher

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-21 19:22:41 +00:00
parent 6c5cb2fa99
commit 2006c0f018
3 changed files with 26 additions and 5 deletions

View file

@ -897,8 +897,16 @@ if (dst == 0) \
* adjust the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
if (extra == 0) \
{ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
} \
else \
{ \
ptr -= BUFSIZ-1; \
bsize += BUFSIZ-1; \
} \
} \
else if (zone == 0) \
{ \
@ -1389,8 +1397,16 @@ if (dst == 0) \
* adjust the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
if (extra == 0) \
{ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
} \
else \
{ \
ptr -= BUFSIZ-1; \
bsize += BUFSIZ-1; \
} \
} \
else if (zone == 0) \
{ \